简要描述:
请求URL:
GET/plugin.product-market.api.order.index
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"order": {
"total": 1,
"per_page": 10,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 1,
"data": [
{
"id": 3108,
"uniacid": 5,
"uid": 77,
"order_sn": "SN201026150086B73D",
"price": "1.00",
"goods_price": "1.00",
"goods_total": 1,
"status": 0,
"create_time": "2020-12-03 18:34:13",
"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": 1606991653,
"updated_at": 1606991653,
"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": "1.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": "",
"plugin_id": 57,
"is_virtual": 0,
"mark": "",
"is_pending": 0,
"note": null,
"cost_amount": "1.00",
"shop_name": "应用市场",
"no_refund": 0,
"need_address": 0,
"invoice_type": 0,
"rise_type": 1,
"collect_name": "",
"company_number": "",
"invoice": null,
"auto_receipt": 0,
"fee_amount": "0.00",
"service_fee_amount": "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
},
"has_many_order_goods": [
{
"id": 2884,
"uniacid": 5,
"goods_id": 310,
"pay_sn": "",
"total": 1,
"create_at": 0,
"price": "1.00",
"goods_sn": "",
"uid": 77,
"thumb": "https://b.yunzmall.com/image/f5ad2b3d9228fbdd718300e5fddfccfc.jpg",
"title": "test",
"goods_price": "1.00",
"goods_option_id": 0,
"goods_option_title": "",
"product_sn": "",
"created_at": "2020-12-03 18:34:13",
"updated_at": "2020-12-03 18:34:13",
"discount_price": "0.00",
"comment_status": 0,
"change_price": "0.00",
"comment_id": 0,
"goods_market_price": "1.00",
"goods_cost_price": "1.00",
"vip_price": "0.00",
"coupon_price": "0.00",
"payment_amount": "1.00",
"deduction_amount": "0.00",
"need_address": 0,
"buttons": [
{
"name": "评价",
"api": "",
"value": ""
}
]
}
],
"has_market_product": {
"id": 15,
"member_id": "77",
"order_id": "3108",
"widget": [
{
"goods_id": 310,
"widget": {
"id": [
"3"
],
"num": [
"1"
],
"name": [
"文章营销\r\n "
]
}
}
],
"created_at": "2020-12-03 18:34:13",
"updated_at": "2020-12-03 18:34:13",
"deleted_at": null
}
}
]
},
"domain": "yunzmall.com"
}
}
错误时返回:
{
"errcode": 500,
"errmsg": "invalid appid"
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
domain | string | 域名 |
order.has_market_product.widget.widget.name | string | 商品对应的插件(渲染的时候判断下goods_id是否相等) |
备注:
- 更多返回错误代码请看首页的错误代码描述