多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 编辑商品记录 ~~~[api] post:branch.goods/set *gid=2#当前编辑商品ID *title=商品标题#商品标题 *content=商品内容描述#商品内容描述 *logo=商品LOGO#商品LOGO *desc=商品描述#商品描述 *image=商品展示图片#商品展示图片 *tagid=1,2#商品分组,多个以英文逗号分隔 *spec=[{"name":"尺寸","list":[{"name":"160","check":true},{"name":"162","check":false}]},{"name":"颜色","list":[{"name":"黑色","check":false},{"name":"白色","check":true}]}]#JSON数据 *list=[{"name":"尺寸::160;;颜色::白色","price":"100","tag_price":"200"}]#商品列表JSON video=商品展示视频#商品展示视频 <<< 操作成功 { "code": 1, "msg": "添加商品成功!", "data": { "goods": { "id": 22, "sid": 23, "tagid": "1,2", "spec": [ { "name": "尺寸", "list": [ { "name": "160", "check": true }, { "name": "162", "check": false } ] }, { "name": "颜色", "list": [ { "name": "黑色", "check": false }, { "name": "白色", "check": true } ] } ], "logo": "商品LOGO", "image": "商品展示图片", "title": "商品标题", "content": "商品内容描述", "video": "商品展示视频", "desc": "商品描述", "sort": 0, "status": 1, "is_deleted": 0, "create_at": "2018-08-16 18:23:02", "specs": [ { "id": 38, "sid": 23, "gid": 22, "spec": "尺寸::160;;颜色::白色", "market": "0.00", "selling": "0.00", "l1_number": 0, "l1_price": "0.00", "l2_number": 0, "l2_price": "0.00", "l3_number": 0, "l3_price": "0.00", "freight": "0.00", "stock": 0, "sale": 0, "status": 1, "is_deleted": 0, "create_at": "2018-08-16 18:23:02" } ] } } } <<< 操作失败 { "code": 0, "msg": "更新商品失败,请稍候再试!", "data": [] } ~~~