直接购买选择收获地址确认订单
请求路由url
/api/order_pay/buyNow
请求方式
get
请求参数
参数 | 说明 | 类型 | 是否必要 |
---|---|---|---|
token | 登录时返回的token | string | 是 |
goods_id | 商品id | int | 否(获取该分类商品列表,如果不传将默认取分类中第一个) |
goods_sku_id | 商品sku id (形如:47_42) | string | 是 有些商品没有,就直接传空字符串 |
goods_num | 数量 | int | 是 |
请求结果
{
"code": 1,
"msg": "ok",
"time": "1642477916",
"data": {
"goods_list": [
{
"goods_id": 25,
"goods_name": "测试",
"short_desc": "士大夫但是",
"store_id": 1,
"category_id": 9,
"spec_type": "10",
"deduct_stock_type": "20",
"sales_initial": 0,
"sales_actual": 0,
"goods_sort": 25,
"delivery_id": 22,
"goods_status": "10",
"is_delete": "0",
"createtime": 1642422798,
"updatetime": 1642422798,
"image": "http://cicp.test/uploads/20220117/195ec4f87e9f971319c890ceb1bea29e.png",
"specs_desc": "",
"service_desc": "",
"goods_files": {
"content": "",
"attachment_files": ""
},
"show_error": 0,
"goods_sku": {
"goods_spec_id": 109,
"goods_id": 25,
"goods_no": "dddd",
"goods_price": "100",
"intellect_info": "",
"line_price": "120",
"stock_num": 100,
"goods_sales": 0,
"goods_weight": 1,
"spec_sku_id": "",
"spec_image": "",
"create_time": 1642422798,
"update_time": 1642422798,
"goods_attr": ""
},
"goods_price": "100",
"total_num": 1,
"total_price": "120.00",
"total_pay_price": "100.00",
"goods_spec_id": 109,
"goods_sales": 0
}
],
"order_total_num": 1,
"order_total_price": "120.00",
"order_pay_price": 100,
"preferential_price": "20.00",
"address": {//默认地址
"address_id": 3,
"name": "fdgfdg",
"phone": "15507599086",
"province_id": 820,
"city_id": 821,
"region_id": 822,
"detail": "ceshi",
"user_id": 2,
"isdefault": "1",
"createtime": 1641870864,
"updatetime": 1641870867,
"Area": {
"province": "江苏省",
"city": "南京市",
"region": "玄武区"
}
},
"express_price": 0,
"intra_region": true,
"has_error": false,
"error_msg": null
}
}