小商店/交易组件图片上传优化
发布于 3 年前 作者 ping26 4399 次浏览 来自 分享

小商店/交易组件在入驻及商品图片字段上传时,推审的图片(类目资质图片、商品图片等)链接没有规范化,存在以下几种问题:

1、外链链接过期导致图片无法打开

2、可能是系统原因造成的链接无效,图片无法打开

3、开发者提交的无效链接(此类问题在api上传时出现)

对于此问题,我们做了接口的升级,目前接口已经做好了,文档也已经更新

上传图片:https://developers.weixin.qq.com/miniprogram/dev/framework/ministore/minishopopencomponent/API/register/uploadimg.html

需要加入参数resp_type = 1

回包获取img_url图片临时链接

开发者需要改造以下接口(所有图片字段都需要使用以上接口先获取临时链接后再提交):

添加商品:https://developers.weixin.qq.com/miniprogram/dev/framework/ministore/minishopopencomponent/API/spu/add_spu.html

更新商品:https://developers.weixin.qq.com/miniprogram/dev/framework/ministore/minishopopencomponent/API/spu/up_spu.html

添加SKU:https://developers.weixin.qq.com/miniprogram/dev/framework/ministore/minishopopencomponent/API/sku/add_sku.html

更新SKU:https://developers.weixin.qq.com/miniprogram/dev/framework/ministore/minishopopencomponent/API/sku/up_sku.html

目前过度期间,这四个接口不做拦截,截止到7月5日开始实施拦截。

回到顶部