简要描述:

  • 后台获取图片接口

请求域名:

  • http://xx.com

请求URL:

POST:route=plugin.wechat.admin.material.controller.image.index

参数:

参数名 是否必须 类型 说明
page int 分页 - 页码

返回示例:

正确时返回:

{
    "result": 1, 
    "msg": "success", 
    "data": [
        {
            "id": 1, 
            "acid": 2, 
            "filename": "/data/wwwroot/dev5.yunzshop.com/attachment/images/2/2018/08/PlslOpqFAP5Prvf4s85Qv305QYpNrf.jpg", 
            "attachment": "http://mmbiz.qpic.cn/mmbiz_jpg/mroJaEUKXU3KiaoGx0N6RCv2lSpaRoeeyr2xdicrXmvLReA7kJ6fBibfVLvgTprKg2fSsgzia3UyHfWcou3caeUiabg/0?wx_fmt=jpeg", 
            "media_id": "6lzZm939uXrGNwAVWORSNq0DFemCjz3EiBNO1pedLQA", 
            "type": "image", 
            "model": "perm", 
            "tag": "", 
            "createtime": 1534906771
        }, 
        {
            "id": 2, 
            "acid": 2, 
            "filename": "/data/wwwroot/dev3.yunzshop.com/attachment//images/3/2018/05/WNqnFZnH0DFF6NNFnMmNn8fzzmWd4N.png", 
            "attachment": "http://mmbiz.qpic.cn/mmbiz_png/mroJaEUKXU3SmkV4njhdCvbvIQPxzFVxaEemssAib6eFTQQEeQU1cZNBEnBJCejWZ3wKWqzIjhYic8mX0PPbz2CQ/0?wx_fmt=png", 
            "media_id": "6lzZm939uXrGNwAVWORSNiyEtaWn1f3iheCnIFhGlfw", 
            "type": "image", 
            "model": "perm", 
            "tag": "", 
            "createtime": 1525741611
        }, 
        {
            "id": 3, 
            "acid": 2, 
            "filename": "/data/wwwroot/dev3.yunzshop.com/attachment/images/3/2018/03/SwNuke444Ea9cWZEPW494a1Ce9b1BN.jpg", 
            "attachment": "http://mmbiz.qpic.cn/mmbiz_jpg/mroJaEUKXU2h8vV1Fjibod6o1aTF1P0MurQELxNjp65PAFLm3NQgXq76o2Ha0PQJDxibYqW9DUQuRHyvaOV94kUw/0?wx_fmt=jpeg", 
            "media_id": "6lzZm939uXrGNwAVWORSNjRl89Qv95GKux38hXdX1jE", 
            "type": "image", 
            "model": "perm", 
            "tag": "", 
            "createtime": 1522051091
        }
    ]
}

返回参数说明:

参数名 类型 说明
result int 正确或者错误,正确1,错误0
msg string 错误信息
data 数组 包含多个图片信息的数组
data参数名 类型 说明
id int 素材id
acid int 公众号id
filename string 文件名
attachment string 图片链接
media_id string 微信端的media_id
type string 素材类型
model string 存储方式:local,perm local表示存储在服务器,perm表示存储在微信
tag string 标签
createtime int时间戳 创建时间

备注:

  • 更多返回错误代码请看首页的错误代码描述