check-source-exist 接口
检查资源文件是否已存在
请求方式
POST http://ip/mwapi/check-source-exist
参数 | 说明 |
---|---|
sourceType | 资源类型,1:图片、2:视频、6:音乐、10:GFX、11:画面背景图、13:PDF、14:网页 |
md5 | 资源文件md5值 |
返回数据
JSON 结构如下:
{
"info": {
"find": 1,
"source": {
"duration": 0,
"filePath": "2009/2009.JPG",
"height": 1080,
"id": 2009,
"md5": "f7e7f0cd578a44c77aed69e7c147d676",
"name": "IMG_3010",
"rotation": 0,
"secondaryType": 0,
"thumbHeight": 144,
"thumbWidth": 256,
"thumbnailPath": "2009/2009.thumb.jpeg",
"type": 1,
"width": 1920,
"url": ""
}
},
"message": "success",
"result": 0
}
属性 | 说明 |
---|---|
status | 返回状态。0:请求成功,返回其它值请参考 API 状态码。 |
find | 0:未找到 1:找到指定预置资源 |
source | 资源实体 |