💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**新增or更改商品信息** ~~~[api] post:api/merchant/updateGoods *string:token=默认值#登录令牌 *name#商品名称 *storeId#门店id int:id#商品id,多个使用‘‘,’’隔开,下架商品才可修改,更新必传 cid#分类id barCode#商品条码 price#价格 mainImage#产品主图地址 subImages#副图片地址,json格式 detail#商品详情 subtitle#商品副标题,描述 tagIds#商品标签id集,多个用,隔开 standardIds#商品规格id集,多个用,隔开 attributeIds#商品属性id集,多个用,隔开 unit#商品单位 int:isRecommend#推荐(0-是;1-否) stock#库存数量 status=2#商品状态.1-在售 2-下架 3-删除 sort#排序权重,1--99,顺序排序 <<< success1 { "status": 1, "message": "添加成功", "order_data": [], "data": { "name": "商品名称test111", "store_id": "201999124846160576", "cid": "1", "price": "9.9", "main_image": "https://www.yunsoyi.cn/upload/images/151956614301587091303.jpg", "sub_images": "['http://www.yunsoyi.cn/upload/images/151956614301597905396.jpg','https://www.yunsoyi.cn/upload/images/151956614301587091303.jpg']", "detail": "商品详情", "subtitle": "商品副标题", "tag_ids": "1,2", "standard_ids": "1,2,3", "attribute_ids": "1,2,3", "unit": "份", "is_recommend": "1", "stock": "500", "status": "2", "sort": "1", "updated_at": "2020-09-03 10:50:30", "created_at": "2020-09-03 10:50:30", "id": 1 } } <<< error1 { "status": 2, "message": "添加失败", "order_data": [], "data":[] } <<< success2 { "status": 1, "message": "更新成功", "order_data": [], "data":[] } <<< error2 { "status": 2, "message": "更新失败", "order_data": [], "data":[] } ~~~