https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html
{
"backgroundImg": "https://fz-1259315981.cos.ap-shanghai.myqcloud.com/backImage/backgroup1.png",
"nickName": "@PandaTan",
"address": "湖南省长沙市芙蓉区五一大道(老省政府机关二院(解放中路乔庄老省政府))",
"introduction": "hello world 555"
}
请求参数
返回值:"message": "{\"errcode\":200002,\"errmsg\":\"goodsInfo must not be empty rid: 5f2a1bcf-3be5dc84-42c599d7\"}"
请问是这个接口么?麻烦确认一下参数是否正确。
{goodsInfo={"coverImgUrl":"JjJ_o0XRnWx_Z4DHT-YROMBtzE6K-PIRiTVaXN5UOw-PtQhsN3ziu8e8LGnHS9eZ","price":110,"name":"测试商品1","priceType":3,"url":"pages/good_detail/good_detail.html?productSn=6903244950756","price2":100}}
返回 {"errcode":300006,"errmsg":"goods img upload fail rid: 61e76efd-59d858d9-48c14de3"}
盼回复 获取madia_id用的token 也是小程序的token
用获取图片的接口可以正常下载
{"goodsInfo":{"coverImgUrl":"eOg-8mZ5x4ICz7CHKp7b5V6HpLAkThg25e62xlBrzoE9Gs_znXVWtZUw6S-u3TSD","name":"\u963f\u65af\u8482\u82ac","priceType":1,"price":"12.36","url":"pages\/classify\/productDetails\/productDetails?id=320"}} {"errmsg":"goodsInfo must not be empty rid: 5f841218-798050da-69173dd6","errcode":200002}
{"goodsInfo":{"coverImgUrl":"qxIzPMVn2HRZSxhDeY1cH_bBae3XFb_adAla7s3ZQ6mrQrsdo46rk_mjjo4bu9GT","name":"abcdedfg","priceType":0,"price":268,"price2":0,"url":"pages/goods/index?objectId=1042"}}
请求参数{goodsInfo: {coverImgUrl: 0hq8vIdaKovSQD53wKJL8k1CTvsdkFhkvLiStEEP3M39FPgNeDrYD2jjUSyE-6G4, name:电动牙刷,priceType: 1,price: 29.9,url:pagesA/product/product.html?data={id:AS4KUNC4B19N2S6IVK9H7OHA}}}