简要描述:
请求域名:
请求URL:
POST:route=plugin.wechat.admin.material.controller.image.get-local-image
参数:
参数名 |
是否必须 |
类型 |
说明 |
page |
否 |
int |
分页 - 页码 |
返回示例:
正确时返回:
{
"result":1,
"msg":"success",
"data":{
"total":2,
"per_page":20,
"current_page":1,
"last_page":1,
"next_page_url":null,
"prev_page_url":null,
"from":1,
"to":2,
"data":[
{
"id":1,
"uniacid":2,
"uid":0,
"filename":"3.jpg",
"attachment":"http://www.yz.com/attachment/static\upload\images\2\2019\03\l9Likwp7Jkp2IKaPRR220L22rK3gKk.jpg",
"type":0,
"module_upload_dir":"",
"group_id":0
},
{
"id":2,
"uniacid":2,
"uid":0,
"filename":"1.jpg",
"attachment":"http://www.yz.com/attachment/static\upload\images\2\2019\03\aAB11mV1AZa1ma1CTbOmfvSzFnaa2p.jpg",
"type":0,
"module_upload_dir":"",
"group_id":0
}
]
}
}
返回参数说明:
参数名 |
类型 |
说明 |
result |
int |
正确或者错误,正确1,错误0 |
msg |
string |
错误信息 |
data |
对象 |
分页信息和图片对象 |
data分页信息和图片对象 |
类型 |
说明 |
total |
int |
总记录数 |
per_page |
int |
每页记录数 |
current_page |
int |
当前页 |
last_page |
int |
尾页 |
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 |
标签 |
备注: