ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
**1.接口地址**:http://api.zishahui.vip/product-order/confirm-order **3.请求方式**:post **4.请求参数**: | 参数 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | |goods_id |否 | int | 商品ID(若是从购物车结算 则传cart_id)| |cart_id |否 | string | 购物车id,多个购物车ID按照逗号连接| ***5.返回字段说明*** |名称|类型|说明| |---|:---:|--:|--:| |code|int|返回码| |msg|string|返回提示信息| |data|string|返回数据| ***5.data字段说明*** |名称|类型|说明| |---|:---:|--:|--:| |id|int|订单ID| |order_num|int|订单编号| |address|string|收货地址| |phone|int|电话| |user_name|string|收货人| |create_time|int|创建时间| |total_money|int|总金额| |status|int|订单状态:1待付款,2已付款,3已发货,4待评价,5订单已取消| |info|array|商品信息| *******成功示列******* { "code": 1, "msg": "返回成功!", "data": [ { "shop": { "shop_id": "1", "shop_name": "利永紫砂官方旗靓店", "goods": [ { "product_id": "1", "price": "500.00", "capacity": "250", "num": "3", "icon_path": "http://backend.zishahui.vip/upload/product/20180514/a1239836ac258088c8fc2fd0e22e364f.jpg", "shop_id": "1", "intro": "一款很好的紫砂壶!独立!高贵!激情" }, { "product_id": "25", "price": "9988.00", "capacity": "100", "num": "2", "icon_path": "http://backend.zishahui.vip/upload/product/20180514/a1239836ac258088c8fc2fd0e22e364f.jpg", "shop_id": "1", "intro": "萨达所大所多阿萨德" } ] } }, { "shop": { "shop_id": "2", "shop_name": "奥尔良烤鸡腿堡", "goods": [ { "product_id": "2", "price": "1200.00", "capacity": "310", "num": "2", "icon_path": "http://backend.zishahui.vip/upload/product/20180514/a1239836ac258088c8fc2fd0e22e364f.jpg", "shop_id": "2", "intro": " 撒大大大声道ad阿达" } ] } } ] } *******获取失败******* { "code": "-1", "msg": "缺少参数!", "data": [] } { "code": "-1", "msg": "非法参数!", "data": [] }