问题:调用微信的道具创建和发布接口 请求都成功了然后 查询道具接口没有数据 微信公众平台道具列表也没有数据 下面是请求:
查询创建道具列表接口:https://api.weixin.qq.com/xpay/query_upload_goods
返回数据:{"errno": 0,"data": {"upload_item": [],"status": 3,"errcode": 0,"errmsg": "OK","total": 0,"end": 0,"progress": 0,"cost": 0},"msg": "成功"}
查询发布道具列表接口:https://api.weixin.qq.com/xpay/query_publish_goods
返回数据:{"errno": 0,"data": {"publish_item": [],"status": 3,"errcode": 0,"errmsg": "OK","total": 0,"end": 0,"progress": 0,"cost": 0},"msg": "成功"}
创建道具接口:https://api.weixin.qq.com/xpay/start_upload_goods
请求数据:{"upload_item":{"id":"doujia700","name":"剧豆","price":700,"item_url":"https:\/\/img.wandu.cn\/na\/materials\/2311\/065510.png","remark":"剧豆备注"},"env":0}}
返回结果:{"errcode":0,"errmsg":"OK"}
发布道具接口:https://api.weixin.qq.com/xpay/start_publish_goods
请求数据:{"publish_item":{"id":"doujia700"},"env":0}}
返回结果:{"errcode":0,"errmsg":"OK"}
upload_item需要是数组,{"upload_item":[xxxxx]} 而不是 {"upload_item":{xxxx}} ,如果query接口查出来的数组是空的则表示传上来的数据就是空的