简要描述:
- 周边游-订单详情 与正常订单返回参数基本一致 额外增加周边游的订单信息与订单详情
请求URL:
plugin.travel-around.frontend.order.detail&order_id=231095
参数:
参数名 |
类型 |
说明 |
order_id |
int |
订单id |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"id": 231203,
"order_sn": "ZBY2212091411CD8CB6",
"price": "30.00",
"goods_price": "30.00",
"goods_total": 2,
"status": 0,
"create_time": "2022-12-09 14:11:24",
"finish_time": "1970-01-01 08:00:00",
"pay_time": "1970-01-01 08:00:00",
"send_time": "1970-01-01 08:00:00",
"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": 0,
"order_goods_price": "30.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": "",
"is_virtual": 0,
"plugin_id": 154,
"mark": "0",
"is_pending": 0,
"note": null,
"cost_amount": "0.00",
"shop_name": "中台application6",
"no_refund": 0,
"need_address": 1,
"invoice_type": 0,
"rise_type": 1,
"collect_name": "",
"company_number": "0",
"invoice": null,
"auto_receipt": 0,
"fee_amount": "0.00",
"service_fee_amount": "0.00",
"is_all_send_goods": 0,
"close_reason": null,
"camilo_resources_coupon_type": 1,
"camilo_resources_recharge_number": null,
"vip_order_goods_price": "30.00",
"initial_freight": "0.00",
"tax_fee": "0.00",
"dispatch_type_name": "快递",
"status_name": "待付款",
"pay_type_name": "未支付",
"button_models": [
{
"name": "支付",
"value": 1,
"api": "plugin.travel-around.frontend.payment.payment.pay",
"type": ""
},
{
"name": "取消订单",
"value": 9,
"api": "order.operation.close",
"type": ""
}
],
"process": [],
"has_one_pay_type": {
"id": 0,
"name": "未支付",
"plugin_id": 0,
"code": "unPay",
"type": 0,
"unit": "",
"updated_at": "2017-09-19 09:48:07",
"created_at": null,
"deleted_at": null,
"setting_key": "",
"need_password": 0,
"group_id": 0
},
"travel_around_order": {
"id": 45,
"order_id": 231203,
"order_sn": "ZBY2212091411CD8CB6",
"member_id": 698204,
"status": 0,
"order_price": "70.00",
"third_order_sn": null,
"channel_order_id": null,
"quantity": null,
"code_amount": null,
"city": "北京站",
"bookingShowAddress": 0,
"orderShowIdCard": 0,
"orderShowDate": 0,
"idCard": "",
"customerName": "客户名称",
"customerPhoneNumber": "18249104358",
"address": "",
"created_at": "2022-12-09 14:11:25",
"updated_at": "2022-12-09 14:11:25",
"deleted_at": null,
"memo": "",
"pay_type": 0,
"order_address":"\"{\\\"id\\\":358,\\\"uniacid\\\":5,\\\"uid\\\":1170,\\\"username\\\":\\\"3213\\\",\\\"mobile\\\":\\\"18249104358\\\",\\\"zipcode\\\":\\\"\\\",\\\"province\\\":\\\"\北\京\\\",\\\"city\\\":\\\"\北\京\市\\\",\\\"district\\\":\\\"\朝\阳\区\\\",\\\"street\\\":\\\"\\\",\\\"address\\\":\\\"\双\井\富\力\城\小\区\三\期10-08\号\\\",\\\"isdefault\\\":1,\\\"longitude\\\":\\\"\\\",\\\"latitude\\\":\\\"\\\"}\"",
"pay_type_name": "未支付"
},
"has_many_travel_around_order_goods": [
{
"id": 47,
"order_id": 231203,
"goods_id": 3884,
"yz_goods_id": 1057773,
"yz_option_id": 315661,
"total": 2,
"created_at": "2022-12-09 14:11:25",
"updated_at": "2022-12-09 14:11:25",
"deleted_at": null,
"yz_travel_around_order_id": 45,
"title": "糖耳朵",
"option_img": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
"option_title": "默认0",
"option_id": 4637,
"goods_price": "35.00",
"goods_cost": "20.00",
"market_price": "35.00"
}
],
"has_many_travel_around_order_detatil": [],
"has_many_order_goods": [
{
"id": 231538,
"uniacid": 5,
"goods_id": 7257,
"pay_sn": "",
"total": 2,
"create_at": 0,
"price": "30.00",
"goods_sn": "",
"uid": 698204,
"thumb": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/travel_around",
"title": "周边游基础设置",
"goods_price": "30.00",
"goods_option_id": 10468,
"goods_option_title": "默认",
"product_sn": "",
"created_at": "2022-12-09 14:11:25",
"updated_at": "2022-12-09 14:11:25",
"discount_price": "0.00",
"comment_status": 0,
"change_price": "0.00",
"comment_id": 0,
"goods_market_price": "0.00",
"goods_cost_price": "0.00",
"vip_price": "30.00",
"coupon_price": "0.00",
"payment_amount": "30.00",
"deduction_amount": "0.00",
"need_address": 1,
"order_express_id": null,
"is_refund": 0,
"refund_id": 0,
"points": "",
"refunded_total": 0,
"buttons": [],
"after_sales": {
"refund_id": 0,
"refund_type_name": "",
"refund_status_name": "已退款",
"refunded_total": 0
},
"has_one_comment": null,
"has_one_goods": {
"id": 7257,
"uniacid": 5,
"brand_id": 0,
"type": 1,
"status": 1,
"display_order": 0,
"title": "周边游基础设置",
"thumb": "https://fjfff-1301507422.cos.ap-guangzhou.myqcloud.com/travel_around",
"thumb_url": "",
"sku": "个",
"goods_sn": "",
"product_sn": "",
"market_price": "1.00",
"price": "15.00",
"cost_price": "1.00",
"stock": 99999,
"reduce_stock_method": 0,
"show_sales": 8,
"real_sales": 8,
"weight": "0.00",
"has_option": 1,
"is_new": 0,
"is_hot": 0,
"is_discount": 0,
"is_recommand": 0,
"is_comment": 0,
"is_deleted": 0,
"created_at": "1970-01-01 08:33:42",
"deleted_at": null,
"updated_at": "2022-12-09 14:11:22",
"comment_num": 0,
"is_plugin": 0,
"plugin_id": 154,
"virtual_sales": 0,
"no_refund": 0,
"need_address": 1,
"type2": 1,
"old_id": null,
"volume": null,
"alias": "",
"is_hide": 1,
"min_price": "15.00",
"max_price": "15.00",
"hide_goods_sales": 0,
"hide_goods_sales_alone": 0,
"vip_price": "15.00",
"next_level_price": "15.00",
"has_many_options": [
{
"id": 10468,
"uniacid": 0,
"goods_id": 7257,
"title": "默认",
"thumb": null,
"product_price": "15.00",
"market_price": "0.00",
"cost_price": "0.00",
"stock": 10021,
"weight": "0.00",
"display_order": 0,
"specs": null,
"skuId": "",
"goods_sn": "",
"product_sn": "",
"virtual": 0,
"red_price": "",
"volume": null
}
],
"has_many_goods_discount": []
},
"order": {
"id": 231203,
"uniacid": 5,
"uid": 698204,
"order_sn": "ZBY2212091411CD8CB6",
"price": "30.00",
"goods_price": "30.00",
"goods_total": 2,
"status": 0,
"create_time": "2022-12-09 14:11:24",
"is_deleted": 0,
"is_member_deleted": 0,
"finish_time": "1970-01-01 08:00:00",
"pay_time": "1970-01-01 08:00:00",
"send_time": "1970-01-01 08:00:00",
"cancel_time": "1970-01-01 08:00:00",
"created_at": 1670566285,
"updated_at": 1670566285,
"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": 0,
"order_goods_price": "30.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": "",
"is_virtual": 0,
"plugin_id": 154,
"mark": "0",
"is_pending": 0,
"note": null,
"cost_amount": "0.00",
"shop_name": "中台application6",
"no_refund": 0,
"need_address": 1,
"invoice_type": 0,
"rise_type": 0,
"collect_name": "",
"company_number": "",
"invoice": null,
"auto_receipt": 0,
"fee_amount": "0.00",
"service_fee_amount": "0.00",
"is_all_send_goods": 0,
"close_reason": null,
"camilo_resources_coupon_type": 1,
"camilo_resources_recharge_number": null,
"vip_order_goods_price": "30.00",
"initial_freight": "0.00",
"tax_fee": "0.00",
"status_name": "待付款",
"pay_type_name": "未支付",
"process": [],
"has_one_pay_type": {
"id": 0,
"name": "未支付",
"plugin_id": 0,
"code": "unPay",
"type": 0,
"unit": "",
"updated_at": "2017-09-19 09:48:07",
"created_at": null,
"deleted_at": null,
"setting_key": "",
"need_password": 0,
"group_id": 0
}
},
"is_course": 0
}
],
"order_deduction": [],
"order_discount": [],
"order_fees": [],
"order_service_fees": [],
"order_coupon": [],
"order_invoice": {
"id": 234,
"uid": 698204,
"uniacid": 5,
"order_id": 231203,
"invoice_type": 0,
"rise_type": 1,
"collect_name": "",
"company_number": "0",
"invoice": "0",
"email": "",
"need_invoice": 0,
"updated_at": "2022-12-09 14:11:25",
"created_at": "2022-12-09 14:11:25",
"deleted_at": null,
"enterprise_id": "321",
"invoice_sn": "3213arpW3APT",
"equipment_number": "213",
"bill_type": 0,
"special_type": 0,
"collection": 0,
"list_identification": 0,
"xsf_name": "321",
"xsf_taxpayer": "3213",
"xsf_address": "21321",
"xsf_mobile": "312",
"xsf_bank_admin": "312",
"gmf_taxpayer": "",
"gmf_address": "",
"gmf_bank": "",
"gmf_bank_admin": "",
"gmf_mobile": "",
"content": "",
"drawer": "312321",
"payee": "321",
"reviewer": "321",
"remarks": "",
"notice_no": "",
"applicant": "",
"is_audit": 0,
"detail_param": "",
"tax_rate": 0,
"zero_tax_rate": 0,
"invoice_no": "",
"invoice_nature": 0,
"status": 0,
"invoice_time": 1670566283,
"invoice_image": "",
"apply": 0,
"col_address": "",
"col_name": "",
"col_mobile": ""
},
"order_address": null,
"email": "",
"invoice_state": 0,
"address_info": [],
"aggregation_cps_recharge_bill": {
"recharge_number": ""
},
"receipt_goods_notice": ""
}
}
错误时返回:
{
data: null
msg: "失败"
result: 0
}
data返回参数说明 其他都与正常订单一致:
参数名 |
类型 |
说明 |
travel_around_order |
array |
周边游订单记录 |
has_many_travel_around_order_goods |
array |
订单商品列表显示商品使用这个 |
travel_around_order |
array |
注释的两个使用这个里面的,其他使用原来的就可以 |
has_many_travel_around_order_detatil |
array |
周边游第三方订单详情 |
has_many_travel_around_order_goods --:
参数名 |
类型 |
说明 |
goods_id |
int |
商品id |
total |
int |
购买数量 |
title |
string |
商品名称 |
option_img |
string |
商品图片 |
option_title |
string |
规格名称 |
goods_price |
string |
商品单价 |
goods_cost |
string |
商品成本价 |
travel_around_order:
参数名 |
类型 |
说明 |
order_price |
int |
订单支付金额 |
third_order_sn |
string |
中台订单号 |
channel_order_id |
string |
渠道订单编号 |
quantity |
string |
购买数量 |
code_amount |
string |
已取码数量 |
city |
string |
城市名称 |
idCard |
string |
身份证号 |
customerName |
string |
客户姓名 |
customerPhoneNumber |
string |
客户电话 |
address |
string |
客户地址 |
has_many_travel_around_order_detatil :
参数名 |
类型 |
说明 |
lianlian_order_id |
string |
周边游子订单编号 |
code |
string |
电子码 |
qr_code_url |
string |
二维码-预约链接 |
status |
int |
发码状态 0-未发码 1-已发码 |
refundDate |
int |
退款时间 |
importTime |
int |
发码时间 |
channel_status |
int |
0-未支付,1-已支付;3-核销;大于等于5-已退款 |
detail_url |
string |
订单详情 |
booking_url |
string |
预约链接 |
qr_code_img |
string |
二维码图片地址(当为渠道配置了开启二维码图片才会生成此地址) |
refundDate_at |
string |
退款时间 |
importTime_at |
string |
发码时间 |
status_name |
string |
发码状态 |
channel_status_name |
string |
订单状态 |