ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 创建订单分为两步 /** * 我的采购单 * 购物车、直接购买第一步:选择收获地址和配置方式 * http_method post * @param array $cart_buy_items[] 如:[cart_id : 1, quantity : 2] 再如 : [goods_id :1 , quantity : 1] [必填],分别用于购物车购买和直接购买 * @param int $if_cart 1代表购物车购买 0或不填为直接购买 * @param array $invalid_cart 无效购物车id,系统收到提交后会删除 [非必填] * @param $address_id 地址id * @author 韩文博 */ +++ get:/Buy/buystep1 <<< success { "errcode": 0, "errmsg": "操作成功", "ifcart": 1, "cart_list": [ { "0": { "goods_total": "844.00", "goods_points_total": 0, "goods_img_url": null }, "cart_id": 6, "buyer_id": 102, "goods_id": 770, "goods_title": "NIKE/耐克 2016春季男童女童跑步鞋气垫休闲鞋", "goods_price": "422.00", "goods_num": 2, "goods_img": "http://mingpinsong.img-cn-beijing.aliyuncs.com/20161206/40165148099079740165.png", "bl_id": 0, "state": true, "storage_state": true, "category_id": 146, "goods_points": 0, "transport_id": 0, "goods_freight": "0.00", "goods_vat": 0, "goods_storage": 105 }, { "1": { "goods_total": "13.00", "goods_points_total": 68, "goods_img_url": null }, "cart_id": 7, "buyer_id": 102, "goods_id": 150, "goods_title": "Olay/玉兰油 美肌清爽沐浴露水嫩清爽100毫升", "goods_price": "6.50", "goods_num": 2, "goods_img": "http://mingpinsong.img-cn-beijing.aliyuncs.com/20161107/33442147848558233442.png", "bl_id": 0, "state": true, "storage_state": true, "category_id": 193, "goods_points": 34, "transport_id": 0, "goods_freight": "0.00", "goods_vat": 0, "goods_storage": 113 } ], "goods_total": { "150": "13.00", "770": "844.00" }, "goods_points_total": [ 0, 68 ], "total_goods_points": 68, "total_goods_freight_points": 200, "total_points": 268, "voucher_list": [ { "id": 2, "code": "940527013722000000", "template_id": 3, "title": "一元代金券", "desc": "面额1元 有效期至 2017-04-23", "start_date": 1473669674, "end_date": 1492960352, "price": 1, "limit": "2.00", "state": 1, "active_date": 1473669722, "type": 0, "owner_id": 102, "owner_name": "韩文博", "order_id": null }, { "id": 2, "code": "940527013722000000", "template_id": 3, "title": "一元代金券", "desc": "面额1元 有效期至 2017-04-23", "start_date": 1473669674, "end_date": 1492960352, "price": 1, "limit": "2.00", "state": 1, "active_date": 1473669722, "type": 0, "owner_id": 102, "owner_name": "韩文博", "order_id": null } ], "need_calc_sid_list": [ ], "cancel_calc_sid_list": { "1": { "free_price": 0, "desc": "满0免运费" } }, "freight_hash": "_HFGpsHD1pr0_muLz6BG1xbIprqOExJLR6sL2nw3E46-qXkLWN95ZvJ2mJDDHFhOVOAH9BQHVbfuZ10RpqA7ZmrGGHk84cc2UAKx8zYEiATTXvgJTNoNx2ZGz_89mTm3bg7QXxcyoHiwW0pC0Vv", "address_info": { "id": 4, "user_id": 102, "truename": "韩老大", "province_id": 120000, "city_id": 120100, "area_id": 120103, "area_info": "天津 天津市 河西区", "address": "青林大厦", "tel_phone": "", "mob_phone": "15900336745", "zip_code": null, "is_default": 1 }, "deny_edit_payment": true, "inv_info": { "content": "不需要发票" }, "list": [ { "id": 0, "goods_list": { "0": { "goods_total": "844.00", "goods_points_total": 0, "goods_img_url": null }, "cart_id": 6, "buyer_id": 102, "goods_id": 770, "goods_title": "NIKE/耐克 2016春季男童女童跑步鞋气垫休闲鞋", "goods_price": "422.00", "goods_num": 2, "goods_img": "http://mingpinsong.img-cn-beijing.aliyuncs.com/20161206/40165148099079740165.png", "bl_id": 0, "state": true, "storage_state": true, "category_id": 146, "goods_points": 0, "transport_id": 0, "goods_freight": "0.00", "goods_vat": 0, "goods_storage": 105 }, "goods_total": null, "goods_points_total": 0, "voucher_list": { "id": 2, "code": "940527013722000000", "template_id": 3, "title": "一元代金券", "desc": "面额1元 有效期至 2017-04-23", "start_date": 1473669674, "end_date": 1492960352, "price": 1, "limit": "2.00", "state": 1, "active_date": 1473669722, "type": 0, "owner_id": 102, "owner_name": "韩文博", "order_id": null } }, { "id": 1, "goods_list": { "1": { "goods_total": "13.00", "goods_points_total": 68, "goods_img_url": null }, "cart_id": 7, "buyer_id": 102, "goods_id": 150, "goods_title": "Olay/玉兰油 美肌清爽沐浴露水嫩清爽100毫升", "goods_price": "6.50", "goods_num": 2, "goods_img": "http://mingpinsong.img-cn-beijing.aliyuncs.com/20161107/33442147848558233442.png", "bl_id": 0, "state": true, "storage_state": true, "category_id": 193, "goods_points": 34, "transport_id": 0, "goods_freight": "0.00", "goods_vat": 0, "goods_storage": 113 }, "goods_total": null, "goods_points_total": 68, "voucher_list": { "id": 2, "code": "940527013722000000", "template_id": 3, "title": "一元代金券", "desc": "面额1元 有效期至 2017-04-23", "start_date": 1473669674, "end_date": 1492960352, "price": 1, "limit": "2.00", "state": 1, "active_date": 1473669722, "type": 0, "owner_id": 102, "owner_name": "韩文博", "order_id": null } } ] } <<< error +++ ![](https://box.kancloud.cn/c31fd4f6262ad400172f6f2c23699773_720x1280.png)