🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
### 接口名称 Service/updateService ### 接口描述 修改服务 ### 演示地址 `http://URL/Service/updateService` ### 输入参数 ~~~ (string) oauth_token (必填) (string) oauth_token_secret (必填) (int) user_id 服务所属用户的id(选填) (int)service_id 套餐id (int) store_id 店铺id (string) title,套餐标题 (file)logo 封面file name 上传封面函数返回的对应值(选填) (string)logo_id 封面id (选填,修改的时候不填写) (float) market_price市场价格 (float) price糖果价 (int) category_id 套餐分类id (string) intro套餐简介 ~~~ ### 输出结果 ~~~ 成功 { "status": 1, "msg": { "service_id": 217, "keys": [ { "key": "服务范围", "value": { "id": "20", "key": "服务范围", "image": "http://192.168.1.154/apps/microshop/_static/images/service/item_0.png", "list": { "value": "上海市", "image": [] } } }, { "key": "拍摄精修", "value": { "id": "21", "key": "拍摄精修", "image": "http://192.168.1.154/apps/microshop/_static/images/service/item_1.png", "list": { "value": "123", "image": [ { "image_id": "895", "image_url": "http://demo-coutuan123.b0.upaiyun.com/2015/0626/16/558d0a8e761e1.jpg" }, { "image_id": "896", "image_url": "http://demo-coutuan123.b0.upaiyun.com/2015/0626/16/558d0a8eaf7e7.jpg" }, { "image_id": "897", "image_url": "http://demo-coutuan123.b0.upaiyun.com/2015/0626/16/558d0a8edf97a.jpg" } ] } } }, { "key": "服装造型", "value": [] }, { "key": "拍摄场景", "value": [] }, { "key": "免费赠品", "value": [] }, { "key": "拍摄成品", "value": [] }, { "key": "补充说明", "value": { "id": "22", "key": "补充说明", "image": "http://192.168.1.154/apps/microshop/_static/images/service/item_2.png", "list": { "value": "34242", "image": [ { "image_id": "898", "image_url": "http://demo-coutuan123.b0.upaiyun.com/2015/0626/16/558d0abfa81f0.jpg" }, { "image_id": "899", "image_url": "http://demo-coutuan123.b0.upaiyun.com/2015/0626/16/558d0ac06a1ea.jpg" } ] } } } ] } } 失败 { "status": 0, "msg": "修改失败" } ~~~ ### 其他说明 status 状态 service_id 服务id keys 指定服务分类下对应的其他信息 { key 其他信息的分类 value 用户已经输入的信息(空数组表示用户添加时没有输入该选项) { id 主键id key 对应分类的文字 image 对应分类的图标 list 输入信息的具体详情 { value 输入文字内容 iamge 上传图片信息 { image_id 图片id image_url 图片URL } } } }