简要描述:

  • 重命名分组

请求域名:

  • http://xx.com

请求URL:

POST:route=plugin.wechat.frontend.image.upload

参数:

参数名 是否必须 类型 说明
file file 图片文件

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "success",
    "data": {
        "status": 1,
        "message": "保存成功",
        "data": {
            "media_id": "CEpkcTwQNWB9QY5mwGqtzIElx-3YMMh7xl9MvDQm8HQ",
            "filename": "微信图片_20200728162204.jpg",
            "createtime": 1605764563,
            "attachment": "http://mmbiz.qpic.cn/mmbiz_jpg/E5VErsjmNMkicARXKwz69JcdRdgsibNU4zTDuDk56LDIsD76KzUia31DubtJw1SgzexTgeahwOGicV1ltbvcJkDLxQ/0?wx_fmt=jpeg",
            "tag": [],
            "acid": "1",
            "type": "image",
            "model": "perm",
            "updated_at": "2020-11-19 13:42:43",
            "created_at": "2020-11-19 13:42:43",
            "id": 722
        }
    }
}

返回参数说明:

参数名 类型 说明
media_id string 微信端图片id
filename string 图片名称
attachment string 图片路径
attachment string 图片路径

备注:

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