简要描述:

  • 预约人员记录-分时预约

请求URL:

GET/plugin.reserve-simple.frontend.reserve-order.get-all-list

参数:

参数名 是否必须 类型 说明
reserve_type int 默认全部,1-待核销,2-已完成

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "list": {
            "current_page": 1,
            "data": [
                {
                    "id": 8,
                    "order_id": 1927,
                    "order_sn": "SN22020911082D8EAD",
                    "goods_id": 361,
                    "goods_title": "分时预约商品2",
                    "goods_thumb": "http://localhost:82/attachment/image/6adc3f84138f014bd480f58fd8a5205f.png",
                    "obj_id": 2,
                    "obj_name": "预约对象2",
                    "begin_time": 1643817600,
                    "status": 0,
                    "customer_name": "张三",
                    "customer_tel": "15000000000",
                    "begin_time_str": "2022-02-03 00:00"
                },
                {
                    "id": 9,
                    "order_id": 1928,
                    "order_sn": "SN220209111408DE7D",
                    "goods_id": 361,
                    "goods_title": "分时预约商品2",
                    "goods_thumb": "http://localhost:82/attachment/image/6adc3f84138f014bd480f58fd8a5205f.png",
                    "obj_id": 2,
                    "obj_name": "预约对象2",
                    "begin_time": 1643817600,
                    "status": 0,
                    "customer_name": "张三",
                    "customer_tel": "15000000000",
                    "begin_time_str": "2022-02-03 00:00"
                }
            ],
            "first_page_url": "http://localhost:82/addons/yun_shop/api.php?page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http://localhost:82/addons/yun_shop/api.php?page=1",
            "next_page_url": null,
            "path": "http://localhost:82/addons/yun_shop/api.php",
            "per_page": 10,
            "prev_page_url": null,
            "to": 2,
            "total": 2
        },
        "is_boss": 1
    }
}

错误时返回:

  

返回参数说明:

参数名 类型 说明
is_boss int 是否是店长:0-否,1-是
list array 预约记录
list->id int id
list->order_id int 订单id
list->order_sn string 订单编号
list->goods_id int 商品id
list->goods_thumb string 商品缩略图
list->obj_id int 预约对象ID
list->obj_name string 预约对象名称
list->status int 状态:0:未完成,1:已完成,2:申请取消,3:取消成功,9:取消失败(0,2,9是待核销。1,3是已完成)
list->begin_time_str string 开始时间
list->customer_name string 联系人姓名
list->customer_tel string 联系人电话

备注:

  • 更多返回错误代码请看首页的错误代码描述