简要描述:
请求域名:
请求URL:
GET/app/index.php?i=2&c=entry&do=shop&m=yun_shop&route=order.pre_generated
参数:
参数名 |
是否必须 |
类型 |
说明 |
goods_id |
是 |
string |
商品id |
options_id |
是 |
string |
商品规格id |
total |
是 |
string |
数量 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"dispatch": {
"default_member_address": {
"id": 18,
"uniacid": 2,
"uid": 9,
"username": "测试",
"mobile": "15219025049",
"zipcode": "",
"province": "广东省",
"city": "广州市",
"district": "白云区",
"address": "测试",
"isdefault": 1
}
},
"order_data": [
{
"order": {
"price": 200000,
"goods_price": 200000,
"dispatch_price": 0,
"discount_price": 0,
"deduction_price": 0,
"order_goods": [
{
"goods_id": 62,
"goods_sn": null,
"price": 200000,
"total": 2,
"title": "测试商品-电视1",
"thumb": "http://test.yunzshop.com/attachment/images/2/2017/03/xdbSF7bb4uoKDS494F6b6OnoOyFYzf.jpg",
"goods_option_id": 18,
"goods_option_title": "黑色+50",
"goods_price": 400000,
"vip_price": 200000,
"coupon_price": 0,
"coupon_discount_price": null,
"coupon_money_off_price": null
}
]
},
"coupon": []
}
],
"total_goods_price": 200000,
"total_price": 200000,
"total_dispatch_price": 0
}
}
错误时返回:
{
"result": 0,
"msg": "缺少访问参数",
"data": []
}
{
"result": 0,
"msg": "未找到数据",
"data": []
}
返回参数说明:
参数名 |
类型 |
说明 |
total_price |
integer |
总价格 |
total_dispatch_price |
integer |
总运费 |
total_goods_price |
integer |
商品小计 |
order_data |
array |
订单数组 |
order_data参数名 |
类型 |
说明 |
order |
array |
订单数组 |
coupon |
array |
优惠券数组 |
order参数名 |
类型 |
说明 |
price |
integer |
实际支付价格 |
goods_price |
integer |
商品小计 |
dispatch_price |
integer |
运费 |
discount_price |
integer |
优惠金额 |
deduction_price |
integer |
抵扣金额 |
pay_price |
integer |
需支付金额 |
order_goods |
integer |
订单商品[] |
order_goods参数名 |
类型 |
说明 |
_id |
integer |
商品ID |
_sn |
string |
数量 |
_price |
integer |
价格 |
total |
integer |
数量 |
title |
integer |
标题 |
thumb |
string |
缩略图地址 |
goods_option_title |
string |
商品规格标题 |
goods_option_id |
integer |
商品规格id |
dispatch参数名 |
类型 |
说明 |
username |
string |
收货人姓名 |
mobile |
string |
手机号 |
province |
string |
省份 |
city |
string |
城市 |
district |
string |
区县 |
address |
string |
详细地址 |
备注: