简要描述:

请求域名:

  • http://xx.com

请求URL:

POST/plugin.local-life.api.order.index

参数:

参数名 是否必须 类型 说明
search object 搜索对象
search.status int 0 待付款 1 待使用 2部分使用 3已完成 -1关闭
search.keyword string 关键词

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "success",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 33,
                "order_sn": "SN24102415352061CE",
                "price": "1.62",
                "goods_price": "1.62",
                "goods_total": 1,
                "status": 0,
                "create_time": "2024-10-24 15:35:14",
                "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": 0,
                "dispatch_price": "0.00",
                "discount_price": "0.00",
                "pay_type_id": 0,
                "order_goods_price": "1.62",
                "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": 190,
                "mark": "0",
                "is_pending": 0,
                "note": null,
                "cost_amount": "1.75",
                "shop_name": "本地生活",
                "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",
                "service_fee_amount": "0.00",
                "is_all_send_goods": 0,
                "close_reason": null,
                "vip_order_goods_price": "1.62",
                "initial_freight": "0.00",
                "tax_fee": "0.00",
                "created_type": 0,
                "camilo_resources_coupon_type": 1,
                "camilo_resources_recharge_number": null,
                "dispatch_type_name": "",
                "status_name": "待付款",
                "pay_type_name": "未支付",
                "button_models": [
                    {
                        "name": "支付",
                        "value": 1,
                        "api": "order.operation.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
                },
                "has_many_order_goods": [
                    {
                        "id": 35,
                        "uniacid": 1,
                        "goods_id": 39,
                        "pay_sn": "",
                        "total": 1,
                        "create_at": 0,
                        "price": "1.62",
                        "goods_sn": "",
                        "uid": 1,
                        "thumb": "https://supply.yunzmall.com/uploads/file/ad4540a024b7cc6f1d32025c96fd7198_20241017152911.png",
                        "title": "葱油拌面",
                        "goods_price": "1.62",
                        "goods_option_id": 0,
                        "goods_option_title": "",
                        "product_sn": "",
                        "created_at": "2024-10-24 15:35:14",
                        "updated_at": "2024-10-24 15:35:14",
                        "discount_price": "0.00",
                        "comment_status": 0,
                        "change_price": "0.00",
                        "comment_id": 0,
                        "goods_market_price": "0.63",
                        "goods_cost_price": "1.75",
                        "vip_price": "1.62",
                        "coupon_price": "0.00",
                        "payment_amount": "1.62",
                        "deduction_amount": "0.00",
                        "need_address": 0,
                        "order_express_id": null,
                        "is_refund": 0,
                        "refund_id": 0,
                        "type": 0,
                        "weight": "0.00",
                        "buttons": [],
                        "after_sales": {
                            "refund_id": 0,
                            "refund_type_name": "",
                            "refund_status_name": "已退款",
                            "refunded_total": 0,
                            "complete_quantity": 0
                        },
                        "order": {
                            "id": 33,
                            "uniacid": 1,
                            "uid": 1,
                            "order_sn": "SN24102415352061CE",
                            "price": "1.62",
                            "goods_price": "1.62",
                            "goods_total": 1,
                            "status": 0,
                            "create_time": "2024-10-24 15:35:14",
                            "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": 1729755314,
                            "updated_at": 1729755314,
                            "deleted_at": 0,
                            "cancel_pay_time": "1970-01-01 08:00:00",
                            "cancel_send_time": "1970-01-01 08:00:00",
                            "dispatch_type_id": 0,
                            "dispatch_price": "0.00",
                            "discount_price": "0.00",
                            "pay_type_id": 0,
                            "order_goods_price": "1.62",
                            "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": 190,
                            "mark": "0",
                            "is_pending": 0,
                            "note": null,
                            "cost_amount": "1.75",
                            "shop_name": "本地生活",
                            "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",
                            "service_fee_amount": "0.00",
                            "is_all_send_goods": 0,
                            "close_reason": null,
                            "vip_order_goods_price": "1.62",
                            "initial_freight": "0.00",
                            "tax_fee": "0.00",
                            "created_type": 0,
                            "camilo_resources_coupon_type": 1,
                            "camilo_resources_recharge_number": null,
                            "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_one_local_life_order": {
                    "id": 1,
                    "uniacid": 1,
                    "member_id": 1,
                    "mobile": null,
                    "order_id": 33,
                    "order_sn": "SN24102415352061CE",
                    "midground_order_id": null,
                    "midground_order_sn": null,
                    "midground_order_status": 0,
                    "created_at": "2024-10-24 15:35:14",
                    "updated_at": "2024-10-24 15:35:14",
                    "paid_at": 0,
                    "order_item_id": 0,
                    "status_name": "待付款"
                },
                "available_store": 0
            }
        ],
        "first_page_url": "http://119.91.205.224/addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 13,
        "last_page_url": "http://119.91.205.224/addons/yun_shop/api.php?page=13",
        "links": [
            {
                "url": null,
                "label": "« 上一页",
                "active": false
            },
            {
                "url": "http://119.91.205.224/addons/yun_shop/api.php?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "http://119.91.205.224/addons/yun_shop/api.php?page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "http://119.91.205.224/addons/yun_shop/api.php?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "http://119.91.205.224/addons/yun_shop/api.php?page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "http://119.91.205.224/addons/yun_shop/api.php?page=5",
                "label": "5",
                "active": false
            },
            {
                "url": "http://119.91.205.224/addons/yun_shop/api.php?page=6",
                "label": "6",
                "active": false
            },
            {
                "url": "http://119.91.205.224/addons/yun_shop/api.php?page=7",
                "label": "7",
                "active": false
            },
            {
                "url": "http://119.91.205.224/addons/yun_shop/api.php?page=8",
                "label": "8",
                "active": false
            },
            {
                "url": "http://119.91.205.224/addons/yun_shop/api.php?page=9",
                "label": "9",
                "active": false
            },
            {
                "url": "http://119.91.205.224/addons/yun_shop/api.php?page=10",
                "label": "10",
                "active": false
            },
            {
                "url": "http://119.91.205.224/addons/yun_shop/api.php?page=11",
                "label": "11",
                "active": false
            },
            {
                "url": "http://119.91.205.224/addons/yun_shop/api.php?page=12",
                "label": "12",
                "active": false
            },
            {
                "url": "http://119.91.205.224/addons/yun_shop/api.php?page=13",
                "label": "13",
                "active": false
            },
            {
                "url": "http://119.91.205.224/addons/yun_shop/api.php?page=2",
                "label": "下一页 »",
                "active": false
            }
        ],
        "next_page_url": "http://119.91.205.224/addons/yun_shop/api.php?page=2",
        "path": "http://119.91.205.224/addons/yun_shop/api.php",
        "per_page": 1,
        "prev_page_url": null,
        "to": 1,
        "total": 13
    }
}

返回参数说明:

参数名 类型 说明
available_store int xx家门店可用
has_many_order_goods[].goods_id int 商品id
has_many_order_goods[].title int 商品名称
has_many_order_goods[].thumb int 商品图片
has_many_order_goods[].payment_amount int 实付金额
has_many_order_goods[].total int 商品数量
price int 订单实付金额
has_one_local_life_order.status_name string 订单状态
button_models array 按钮组,和商城订单列表一样的数据结构