上传商品图片到商品管理后台
请求数据样例
POST /mall/uploaditemimage HTTP/1.1
Host: api.weixin.qq.com
Cache-Control: no-cache
----WebKitFormBoundaryE19zNvXGzXaLvS5C
Content-Disposition: form-data; name="access_token"
8_OEXnN9I4sNoKtC2oJZ5eedkKzOsmtoNVg6Ceuq4ifbiJQsdQggSkFOS
----WebKitFormBoundaryE19zNvXGzXaLvS5C
Content-Disposition: form-data; name="filePath"; filename="gxg.jpg"
Content-Type: image/jpeg
----WebKitFormBoundaryE19zNvXGzXaLvS5C
数据类型 | 请求字段 | 必填 | 说明 |
string | item_codes | 是 | 商品编码 |
回包数据样例
{
"errcode":0,
"errmsg":"",
"image_url":"https://shp.qpic.cn/wechat_bs/0/025dd259cedc334d12f3fb61291b34d4"
}
字段类型 | 返回字段 | 说明 |
uint32 | errcode | 错误码 |
string | errmsg | 错误信息 |
string | image_url | 上传后的图片URL |