# public **Repository Path**: buxuku/public ## Basic Information - **Project Name**: public - **Description**: public markdown file - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-01-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 518zst 180105版本接口说明 [Postman在线文档](https://documenter.getpostman.com/view/635216/518zst/7Lrcfz7) ## 一. 【新增】扫码后货号转商品id接口 ``` ?url=/tools/sn2id ``` 正确返回结果 ``` { "data": 3, "status": { "succeed": 1 } } ``` 错误返回结果 ``` { "status": { "succeed": 0, "error_code": 8, "error_desc": "处理失败" } } ``` ## 二. 【新增】催款说明 ``` ?url=/user/reminder ``` 正确返回结果 ``` { "data": "您好!你的欠款已接近信用额度,请您及时支付货款,以免影响你正常提交订单!谢谢!祝你工作愉快!", "status": { "succeed": 1 } } ``` 如果没有催款说明 ``` { "data": "", "status": { "succeed": 1 } } ```` ## 三. 【修改】订单列表显示订单操作日志 ``` ?url=/order/list ``` 返回结果新增字段 ``` "actioins": [ { "action_id": "150", "order_id": "69", "action_user": "demo-518zst", "order_status": "已确认", "shipping_status": "收货确认", "pay_status": "未付款", "action_place": "0", "action_note": "", "log_time": "1509938821", "action_time": "2017-11-06 19:27:01" }, { "action_id": "149", "order_id": "69", "action_user": "demo-518zst", "order_status": "已确认", "shipping_status": "已发货", "pay_status": "未付款", "action_place": "1", "action_note": "", "log_time": "1509938804", "action_time": "2017-11-06 19:26:44" } ], ``` 如果无操作日志,则返回 ``` "actioins": [] ``` ## 四. 【修改】店铺选择页(引导页) ``` ?url=/ad ``` 获取引导页广告位置 (新增`from`参数,值指定为`choosepage`) POST参数 ``` "sid":"xxxxx" "from":"choosepage" ``` 返回结果示例(增加广告位置图片) ``` { "data": [ { "position_id": "26", "position_name": "金牌优质配件供应商", "position_img": "http://127.518zst.com/data/afficheimg/", "pic_name": "" }, { "position_id": "28", "position_name": "test2", "position_img": "http://127.518zst.com/data/afficheimg/1515547463404714813.png", "pic_name": "1515547463404714813.png" } ], "status": { "succeed": 1 } } ``` 引导页指定广告位置广告列表(新增`from`参数,值指定为`choosepage`) POST参数 ``` "sid":"xxxxx" "from":"choosepage" "position_id":333 ``` 引导页滚动广告列表(`position_id`值指定为`27`) POST参数 ``` "sid":"xxxxx" "from":"choosepage" "position_id":27 ``` 返回结果新增`bind_seller_id`字段,代表这个广告绑定的代理商id ``` { "data": [ { "ad_name": "4444", "ad_code": "http://127.518zst.com/data/afficheimg/555", "goods_id": "0", "brand_id": "", "bind_seller_id": "2", "pic_name": "555" }, { "ad_name": "5555", "ad_code": "http://127.518zst.com/data/afficheimg/55555", "goods_id": "0", "brand_id": "", "bind_seller_id": "3", "pic_name": "55555" } ], "status": { "succeed": 1 } } ``` ## 五. 【新增】引导页选择代理商 ``` ?url=/user/chooseagent ``` 在引导页选择代理商会判断当前经销商是否在目标代理商处于开启状态 如果为关闭状态,则不可进入该代理商店铺 返回结果 ``` { "status": { "succeed": 0, "error_code": 20002, "error_desc": "无权限进入该店铺" } } ``` 否则返回 ``` { "data": [], "status": { "succeed": 1 } } ``` ## 六. 【修改】个人中心展示授信额度 ``` ?url=/user/info ``` 原来返回的`credit`值调整为对象 ``` "credit": { "rank": "3", "amount": "333.00", "rank_name": "C级" }, ``` 如果没有设置授信信息,则返回 ``` "credit": null, ``` ## 七. 【修改】提交订单新增加错误码 ``` ?url=/flow/done ``` 提交订单时会判断当前用户是否超授信额度,如果是,则返回错误码: ``` { "status": { "succeed": 0, "error_code": 20003, "error_desc": "您的欠款金额已超过信用额度上限,请及时付款!" } } ```