简要描述:
- 订单详情
请求域名:
- http://xx.com
请求URL:
GET:route=plugin.fight-groups.admin.controllers.order.detail
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
order_id | 否 | int | 订单id |
order_sn | 否 | string | 订单号 |
注意,订单id和订单号必须传入一个,如果同时都有传入,则取订单号的数据回显
返回示例:
正确时返回:
{
"id":24,
"uniacid":2,
"uid":1,
"order_sn":"SN20180709153145ZX",
"price":"100.00",
"goods_price":"100.00",
"goods_total":1,
"status":3,
"create_time":"2018-07-09 15:31:45",
"is_deleted":0,
"is_member_deleted":0,
"finish_time":"2018-07-09 15:32:06",
"pay_time":"2018-07-09 15:31:48",
"send_time":"2018-07-09 15:32:01",
"cancel_time":"1970-01-01 08:00:00",
"created_at":1531121505,
"updated_at":1531121526,
"deleted_at":0,
"cancel_pay_time":"1970-01-01 08:00:00",
"cancel_send_time":"1970-01-01 08:00:00",
"dispatch_type_id":1,
"dispatch_price":"0.00",
"discount_price":"0.00",
"pay_type_id":3,
"order_goods_price":"100.00",
"deduction_price":"0.00",
"refund_id":0,
"is_plugin":0,
"change_price":"0.00",
"change_dispatch_price":"0.00",
"comment_status":0,
"order_pay_id":"31",
"is_virtual":0,
"plugin_id":37,
"mark":"",
"is_pending":0,
"note":null,
"cost_amount":"0.00",
"shop_name":null,
"no_refund":0,
"need_address":0,
"invoice_type":null,
"rise_type":null,
"collect_name":null,
"company_number":null,
"invoice":null,
"auto_receipt":0,
"fee_amount":"0.00",
"status_name":"交易完成",
"pay_type_name":"余额",
"button_models":[
],
"belongs_to_member":{
"uid":1,
"mobile":"18026357601",
"nickname":"卡卡",
"realname":"12",
"avatar":"http://thirdwx.qlogo.cn/mmopen/q9dUzwx5OmD4y37koPPmU9TQY18uB4w4T75reS4pzFg566AeHWEPqmDiaiajUvyp0DYsejd6YbG2F6qNEulQFOgTxOqjwfrPkX/132",
"avatar_image":"https://thirdwx.qlogo.cn/mmopen/q9dUzwx5OmD4y37koPPmU9TQY18uB4w4T75reS4pzFg566AeHWEPqmDiaiajUvyp0DYsejd6YbG2F6qNEulQFOgTxOqjwfrPkX/132",
"username":"卡卡"
},
"has_many_order_goods":[
{
"id":24,
"uniacid":2,
"goods_id":12,
"pay_sn":"",
"total":1,
"create_at":0,
"price":"100.00",
"goods_sn":"",
"uid":1,
"thumb":"https://dev5.yunzshop.com/attachment/images/2/2018/07/HwEPwVomaJXJ0jEE0JO00Va0QZjeI0.jpg",
"title":"排队奖励商品",
"goods_price":"100.00",
"goods_option_id":0,
"goods_option_title":"",
"product_sn":"",
"created_at":"2018-07-09 15:31:45",
"updated_at":"2018-07-09 15:31:45",
"discount_price":"0.00",
"comment_status":0,
"change_price":"0.00",
"comment_id":0,
"goods_market_price":"10.00",
"goods_cost_price":"10.00",
"vip_price":"0.00",
"coupon_price":"0.00",
"payment_amount":"100.00",
"deduction_amount":"0.00",
"need_address":0,
"goods_thumb":"",
"buttons":[
],
"goods":{
"id":12,
"goods_sn":"",
"product_sn":"",
"market_price":"10.00",
"price":"100.00",
"cost_price":"10.00",
"status":1,
"status_name":"上架"
}
}
],
"has_one_dispatch_type":{
"id":1,
"name":"快递",
"plugin":0,
"need_send":1
},
"has_one_pay_type":{
"id":3,
"name":"余额",
"plugin_id":0,
"code":"balance",
"type":1,
"unit":"元",
"updated_at":"2018-12-19 11:50:29",
"created_at":null,
"deleted_at":null,
"setting_key":"shop.pay.credit",
"need_password":1,
"group_id":3
},
"address":{
"address":"北京 北京市 东城区 测试",
"mobile":"13111223344",
"realname":"测试",
"updated_at":"2018-07-09 15:31:45",
"created_at":"2018-07-09 15:31:45",
"province_id":110000,
"city_id":110100,
"district_id":110101,
"note":null,
"street_id":0,
"zipcode":""
},
"express":{
"id":5,
"order_id":24,
"express_company_name":"",
"express_sn":"",
"express_code":"",
"created_at":"2018-07-09 15:32:01",
"updated_at":"2018-07-09 15:32:01",
"deleted_at":0,
"tel":""
},
"process":[
],
"has_one_refund_apply":null,
"has_one_order_remark":null,
"has_one_order_pay":{
"id":31,
"pay_sn":"PN20180709153146G6",
"status":1,
"pay_type_id":3,
"pay_time":"2018-07-09 15:31:48",
"refund_time":null,
"order_ids":[
24
],
"amount":"100.00",
"uid":1,
"updated_at":"2018-07-09 15:31:48",
"created_at":"2018-07-09 15:31:46",
"deleted_at":null,
"is_pending":0,
"status_name":"已支付",
"pay_type_name":"余额",
"pay_type":{
"id":3,
"name":"余额",
"plugin_id":0,
"code":"balance",
"type":1,
"unit":"元",
"updated_at":"2018-12-19 11:50:29",
"created_at":null,
"deleted_at":null,
"setting_key":"shop.pay.credit",
"need_password":1,
"group_id":3
}
},
"deductions":[
],
"coupons":[
],
"discounts":[
{
"id":93,
"uid":1,
"order_id":24,
"discount_code":"singleEnoughReduce",
"name":"单品满减优惠",
"amount":"0.00",
"is_indirect":0,
"updated_at":"2018-07-09 15:31:45",
"created_at":"2018-07-09 15:31:45",
"deleted_at":null
},
{
"id":94,
"uid":1,
"order_id":24,
"discount_code":"enoughReduce",
"name":"全场满减优惠",
"amount":"0.00",
"is_indirect":0,
"updated_at":"2018-07-09 15:31:45",
"created_at":"2018-07-09 15:31:45",
"deleted_at":null
},
{
"id":95,
"uid":1,
"order_id":24,
"discount_code":"coupon",
"name":"优惠券优惠",
"amount":"0.00",
"is_indirect":0,
"updated_at":"2018-07-09 15:31:45",
"created_at":"2018-07-09 15:31:45",
"deleted_at":null
},
{
"id":96,
"uid":1,
"order_id":24,
"discount_code":"deduction",
"name":"抵扣金额",
"amount":"0.00",
"is_indirect":0,
"updated_at":"2018-07-09 15:31:45",
"created_at":"2018-07-09 15:31:45",
"deleted_at":null
}
],
"order_pays":[
{
"id":31,
"pay_sn":"PN20180709153146G6",
"status":1,
"pay_type_id":3,
"pay_time":"2018-07-09 15:31:48",
"refund_time":null,
"order_ids":[
24
],
"amount":"100.00",
"uid":1,
"updated_at":"2018-07-09 15:31:48",
"created_at":"2018-07-09 15:31:46",
"deleted_at":null,
"is_pending":0,
"status_name":"已支付",
"pay_type_name":"余额",
"pivot":{
"order_id":24,
"order_pay_id":31
},
"pay_type":{
"id":3,
"name":"余额",
"plugin_id":0,
"code":"balance",
"type":1,
"unit":"元",
"updated_at":"2018-12-19 11:50:29",
"created_at":null,
"deleted_at":null,
"setting_key":"shop.pay.credit",
"need_password":1,
"group_id":3
}
}
]
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
result | int | 结果,0为失败,1为成功 |
msg | int | 成功或者失败的信息 |
data | array |