Home - 凌云小学饭卡通接口文档v1.0 SDK:composer require xhkj-supply/lyxx-php-sdk 登录  
最后修改者: admin  2024-02-26 17:42:09 

获取鉴权token

编号  :  00

POST - http://qtlyxx.wzzd.cn/food/api?action=dininghall/open_api/login/gettoken
签名说明: 请求参数: $param = [ 'grant_type' => 'client']; 数组按照键名进行升序排序后,再将键名和键值拼接,末尾加入AppKey和AppSecret 如: grant_type=client&AppKey=yunzL9Ua6L3qkZS42qW&AppSecret=Q9alTTwXT9I3glDK8THBDpSKhVWUIhQI。 签名sign: md5(‘grant_type=client&AppKey=yunzL9Ua6L3qkZS42qW&AppSecret=Q9alTTwXT9I3glDK8THBDpSKhVWUIhQI’)。 结果:117b96dad9e1f0a05cdbada27c1da347。
请求参数
参数名 必传 缺省值 描述
grant_type Y 用户id
AppKey Y 开发者AppKey
AppSecret Y 开发者AppSecret
sign Y 签名
返回值
{
    "code": 1,
    "msg": "鉴权成功",
    "data": {
        "token": "5f724bdb468****e75a3ed35e6024"
    }
}
最后修改者: admin  2024-02-26 17:43:57 

获取当前登录用户个人信息

编号  :  000

GET - http://qtlyxx.wzzd.cn/food/api?action=dininghall/open_api/api/loginuserinfo
请求参数
参数名 必传 缺省值 描述
token Y Headers
返回值
{
    "code": 1,
    "msg": "",
    "data": {
        "id": 1,
        "name": "供应商1",
        "appkey": "yunzL9Ua**kZS42qW",
        "appsecret": "Q9alTTw**K8THBDpSKhVWUIhQI",
        "token": "5f724bdb468a**9e75a3ed35e6024",
        "token_time": "2024-02-26 23:31:16",
        "login_ip": "127.0.0.1",
        "login_time": "2024-02-26 17:31:14",
        "refresh_time": "2024-02-26 17:31:16",
        "updata_time": "2024-02-26 17:31:16",
        "create_time": "2024-02-26 17:31:14"
    }
}
最后修改者: admin  2024-02-23 16:46:51 

001餐厅类别

编号  :  001

GET - http://qtlyxx.wzzd.cn/food/api?action=dininghall/open_api/Api/gethalls
表单数据
请求参数
参数名 必传 缺省值 描述
token Y
返回值
{
    "code": 1,
    "msg": "",
    "data": {
        "type1": [
            {
                "label": "学生餐厅",
                "value": 4,
                "checked": true
            },
            {
                "label": "教师餐厅",
                "value": 10,
                "checked": true
            }
        ],
        "type2": [
            {
                "label": "学生餐厅",
                "value": 2,
                "checked": true
            },
            {
                "label": "教师餐厅",
                "value": 1,
                "checked": true
            }
        ],
        "list": [
            {
                "type": 2,
                "id": 4,
                "name": "学生餐厅",
                "create_time": 0,
                "update_time": 0
            },
            {
                "type": 1,
                "id": 10,
                "name": "教师餐厅",
                "create_time": "2022-08-30 12:47:11",
                "update_time": "2022-09-13 14:09:39"
            }
        ]
    }
}
最后修改者: admin  2024-02-23 16:47:01 

002餐次列表

编号  :  002

GET - http://qtlyxx.wzzd.cn/food/api?action=dininghall/open_api/Api/getmeal
表单数据
请求参数
参数名 必传 缺省值 描述
halls_id Y 餐厅类别list中的id
token Y
返回值
学生餐次列表:
参数halls_id=4
{
    "code": 1,
    "msg": "",
    "data": {
        "type1": [
            {
                "label": "下午点心",
                "value": 14,
                "checked": true
            },
            {
                "label": "午餐",
                "value": 15,
                "checked": true
            },
            {
                "label": "上午点心",
                "value": 13,
                "checked": true
            }
        ],
        "list": [
            {
                "id": 14,
                "halls_id": 4,
                "name": "下午点心",
                "start_time": "10:00",
                "end_time": "17:00",
                "latest_order_switch": 0,
                "latest_return_switch": 1,
                "auto_deduction_switch": 1,
                "auto_deduction_time": 22,
                "latest_return_time": 22,
                "latest_order_time": 36,
                "auto_order_time": 145,
                "auto_order_switch": 1,
                "notice": null,
                "sort": 101
            },
            {
                "id": 15,
                "halls_id": 4,
                "name": "午餐",
                "start_time": "10:00",
                "end_time": "17:00",
                "latest_order_switch": 0,
                "latest_return_switch": 1,
                "auto_deduction_switch": 1,
                "auto_deduction_time": 22,
                "latest_return_time": 22,
                "latest_order_time": 0,
                "auto_order_time": 145,
                "auto_order_switch": 1,
                "notice": null,
                "sort": 100
            },
            {
                "id": 13,
                "halls_id": 4,
                "name": "上午点心",
                "start_time": "10:00",
                "end_time": "17:00",
                "latest_order_switch": 0,
                "latest_return_switch": 1,
                "auto_deduction_switch": 1,
                "auto_deduction_time": 22,
                "latest_return_time": 22,
                "latest_order_time": 36,
                "auto_order_time": 145,
                "auto_order_switch": 1,
                "notice": null,
                "sort": 99
            }
        ]
    }
}

教师餐次列表:
参数halls_id=10
{
    "code": 1,
    "msg": "",
    "data": {
        "type1": [
            {
                "label": "早餐",
                "value": 0,
                "checked": true
            },
            {
                "label": "中餐",
                "value": 1,
                "checked": true
            },
            {
                "label": "晚餐",
                "value": 2,
                "checked": true
            }
        ],
        "list": [
            {
                "id": 0,
                "halls_id": 10,
                "name": "早餐",
                "start_time": "06:00",
                "end_time": "08:30",
                "latest_order_switch": 1,
                "latest_return_switch": 1,
                "auto_deduction_switch": 1,
                "auto_deduction_time": 39,
                "latest_return_time": 39,
                "latest_order_time": 39,
                "auto_order_time": 0,
                "auto_order_switch": 0,
                "notice": null,
                "sort": 100
            },
            {
                "id": 1,
                "halls_id": 10,
                "name": "中餐",
                "start_time": "11:30",
                "end_time": "12:30",
                "latest_order_switch": 1,
                "latest_return_switch": 1,
                "auto_deduction_switch": 1,
                "auto_deduction_time": 20,
                "latest_return_time": 20,
                "latest_order_time": 20,
                "auto_order_time": 0,
                "auto_order_switch": 0,
                "notice": null,
                "sort": 100
            },
            {
                "id": 2,
                "halls_id": 10,
                "name": "晚餐",
                "start_time": "17:00",
                "end_time": "19:00",
                "latest_order_switch": 1,
                "latest_return_switch": 1,
                "auto_deduction_switch": 1,
                "auto_deduction_time": 26,
                "latest_return_time": 26,
                "latest_order_time": 26,
                "auto_order_time": 0,
                "auto_order_switch": 0,
                "notice": null,
                "sort": 100
            }
        ]
    }
}
最后修改者: admin  2024-02-23 16:48:18 

003用户分组接口

编号  :  003

GET - http://qtlyxx.wzzd.cn/food/api?action=dininghall/open_api/Api/getgroup
表单数据
请求参数
参数名 必传 缺省值 描述
halls_id Y 餐厅类别list中的id
token Y
返回值
学生分组:
halls_id=4
{
    "code": 1,
    "msg": "",
    "data": [
        {
            "label": "学生组-一(1)班",
            "value": "2,2",
            "checked": true
        },
        {
            "label": "学生组-一(2)班",
            "value": "2,3",
            "checked": true
        },
        {
            "label": "学生组-一(3)班",
            "value": "2,4",
            "checked": true
        },
        {
            "label": "学生组-一(4)班",
            "value": "2,5",
            "checked": true
        },
        {
            "label": "学生组-一(5)班",
            "value": "2,6",
            "checked": true
        },
        {
            "label": "学生组-一(6)班",
            "value": "2,7",
            "checked": true
        },
        {
            "label": "学生组-一(7)班",
            "value": "2,8",
            "checked": true
        },
        {
            "label": "学生组-二(1)班",
            "value": "2,17",
            "checked": true
        },
        {
            "label": "学生组-二(2)班",
            "value": "2,18",
            "checked": true
        },
        {
            "label": "学生组-二(3)班",
            "value": "2,19",
            "checked": true
        },
        {
            "label": "学生组-二(4)班",
            "value": "2,20",
            "checked": true
        },
        {
            "label": "学生组-二(5)班",
            "value": "2,21",
            "checked": true
        },
        {
            "label": "学生组-二(6)班",
            "value": "2,22",
            "checked": true
        },
        {
            "label": "学生组-三(1)班",
            "value": "2,32",
            "checked": true
        },
        {
            "label": "学生组-三(2)班",
            "value": "2,33",
            "checked": true
        },
        {
            "label": "学生组-三(3)班",
            "value": "2,34",
            "checked": true
        },
        {
            "label": "学生组-三(4)班",
            "value": "2,35",
            "checked": true
        },
        {
            "label": "学生组-三(5)班",
            "value": "2,36",
            "checked": true
        },
        {
            "label": "学生组-三(6)班",
            "value": "2,37",
            "checked": true
        },
        {
            "label": "学生组-四(1)班",
            "value": "2,47",
            "checked": true
        },
        {
            "label": "学生组-四(2)班",
            "value": "2,48",
            "checked": true
        },
        {
            "label": "学生组-四(3)班",
            "value": "2,49",
            "checked": true
        },
        {
            "label": "学生组-四(4)班",
            "value": "2,50",
            "checked": true
        },
        {
            "label": "学生组-二(7)班",
            "value": "2,91",
            "checked": true
        },
        {
            "label": "学生组-四(5)班",
            "value": "2,92",
            "checked": true
        },
        {
            "label": "学生组-四(6)班",
            "value": "2,93",
            "checked": true
        },
        {
            "label": "学生组-四(7)班",
            "value": "2,94",
            "checked": true
        },
        {
            "label": "学生组-五(1)班",
            "value": "2,95",
            "checked": true
        },
        {
            "label": "学生组-测试班级",
            "value": "2,97",
            "checked": true
        },
        {
            "label": "学生组-五(2)班",
            "value": "2,98",
            "checked": true
        },
        {
            "label": "学生组-五(3)班",
            "value": "2,99",
            "checked": true
        },
        {
            "label": "学生组-五(4)班",
            "value": "2,100",
            "checked": true
        },
        {
            "label": "学生组-一(10)班",
            "value": "2,105",
            "checked": true
        },
        {
            "label": "学生组-一(8)班",
            "value": "2,106",
            "checked": true
        },
        {
            "label": "学生组-一(9)班",
            "value": "2,107",
            "checked": true
        }
    ]
}

教师分组:
halls_id=10
{
    "code": 1,
    "msg": "",
    "data": [
        {
            "label": "教师组-其他教师",
            "value": "1,3",
            "checked": true
        },
        {
            "label": "教师组-非编教师",
            "value": "1,4",
            "checked": true
        },
        {
            "label": "教师组-在编教师",
            "value": "1,5",
            "checked": true
        },
        {
            "label": "教师组-图书馆",
            "value": "1,8",
            "checked": true
        },
        {
            "label": "教师组-医务室",
            "value": "1,9",
            "checked": true
        },
        {
            "label": "职员组-保洁",
            "value": "8,11",
            "checked": true
        },
        {
            "label": "职员组-食堂",
            "value": "8,12",
            "checked": true
        },
        {
            "label": "职员组-保安",
            "value": "8,13",
            "checked": true
        },
        {
            "label": "职员组-测试组",
            "value": "8,15",
            "checked": true
        },
        {
            "label": "教师组-测试组",
            "value": "1,15",
            "checked": true
        },
        {
            "label": "教师组-未命名",
            "value": "1,16",
            "checked": true
        },
        {
            "label": "教师组-未命名",
            "value": "1,17",
            "checked": true
        },
        {
            "label": "职员组-技术人员",
            "value": "8,19",
            "checked": true
        },
        {
            "label": "教师组-代课老师",
            "value": "1,20",
            "checked": true
        },
        {
            "label": "职员组-档案管理员",
            "value": "8,21",
            "checked": true
        },
        {
            "label": "教师组-实习老师",
            "value": "1,22",
            "checked": true
        }
    ]
}
最后修改者: admin  2024-02-23 16:47:58 

004性别

编号  :  004

GET - http://qtlyxx.wzzd.cn/food/api?action=dininghall/open_api/Api/getsex
表单数据
请求参数
参数名 必传 缺省值 描述
token Y
返回值
{
    "code": 1,
    "msg": "",
    "data": [
        {
            "label": "男",
            "value": 1,
            "checked": true
        },
        {
            "label": "女",
            "value": 2,
            "checked": true
        }
    ]
}
最后修改者: admin  2024-02-23 16:48:33 

005筛选日期类型

编号  :  005

GET - http://qtlyxx.wzzd.cn/food/api?action=dininghall/open_api/Api/getdatetype
表单数据
请求参数
参数名 必传 缺省值 描述
token Y
返回值
{
    "code": 1,
    "msg": "",
    "data": [
        {
            "label": "用餐日期",
            "value": 0,
            "checked": true
        },
        {
            "label": "下单日期",
            "value": 1,
            "checked": true
        }
    ]
}
最后修改者: admin  2024-02-23 16:48:47 

006订单状态列表

编号  :  006

GET - http://qtlyxx.wzzd.cn/food/api?action=dininghall/open_api/Api/getstatuslist
表单数据
请求参数
参数名 必传 缺省值 描述
token Y
返回值
{
    "code": 1,
    "msg": "",
    "data": [
        {
            "label": "已下单",
            "value": 1,
            "checked": true
        },
        {
            "label": "已扣款",
            "value": 2,
            "checked": true
        },
        {
            "label": "已确认",
            "value": 3,
            "checked": true
        },
        {
            "label": "已取消",
            "value": 4,
            "checked": true
        },
        {
            "label": "已取餐/完成",
            "value": 5,
            "checked": true
        },
        {
            "label": "部分退款/完成",
            "value": 6,
            "checked": true
        },
        {
            "label": "全部退款",
            "value": 7,
            "checked": true
        }
    ]
}
最后修改者: admin  2024-02-23 17:46:50 

007用户余额信息查询

编号  :  007

GET - http://qtlyxx.wzzd.cn/food/api?action=dininghall/open_api/Api/getuserinfo
查询余额
请求参数
参数名 必传 缺省值 描述
user_type N 用户分组类型
user_sex N 性别
user_name N 用户姓名
user_phone N 用户手机号
halls_id N 10 餐厅ID
type N 1 餐厅类型:默认为老师餐厅
user_id N 用户id
token Y
返回值
学生余额信息查询:
参数:
{
    "user_type": [
        {
            "label": "学生组-一(1)班",
            "value": "2,2",
            "checked": true
        },
        {
            "label": "学生组-一(2)班",
            "value": "2,3",
            "checked": true
        }
    ],
    "user_sex": [
        {
            "label": "男",
            "value": 1,
            "checked": true
        },
        {
            "label": "女",
            "value": 2,
            "checked": true
        }
    ],
    "user_name": "",
    "user_phone": "13388889990",
    "user_id":6801,
    "halls_id": 4,
    "type": 2
}
返回:
{
    "code": 1,
    "msg": "",
    "data": {
        "list": [
            {
                "user_name": "任某",
                "user_id": 6801,
                "user_phone": "13388889990",
                "balance": "270.00",
                "key": 6801
            }
        ]
    }
}

教师余额信息查询:
参数:
{
    "user_type": [
        {
            "label": "教师组-其他教师",
            "value": "1,3",
            "checked": true
        },
        {
            "label": "教师组-非编教师",
            "value": "1,4",
            "checked": true
        }
    ],
    "user_sex": [
        {
            "label": "男",
            "value": 1,
            "checked": true
        },
        {
            "label": "女",
            "value": 2,
            "checked": true
        }
    ],
    "user_name": "",
    "user_phone": "13388889990",
    "user_id":7044,
    "halls_id": 10,
    "type": 1
}
返回:
{
    "code": 1,
    "msg": "",
    "data": {
        "list": [
            {
                "user_name": "测试教师",
                "user_id": 7044,
                "user_phone": "13388889990",
                "balance": "100.00",
                "key": 7044
            }
        ]
    }
}
最后修改者: admin  2024-02-26 17:43:20 

008保存订单

编号  :  008

POST - http://qtlyxx.wzzd.cn/food/api?action=dininghall/open_api/Api/saveorder
请求参数
参数名 必传 缺省值 描述
user_id Y 下单用户ID
date Y 就餐日期
meals_num Y 餐次ID(接口002)
meals_name Y 餐次名称(接口002)
halls_id Y 餐厅ID(接口001)
halls_name Y 餐厅名称(接口001)
menu_list Y 菜品列表
token Y
返回值
教师下单调用示例:
参数:
[
    {
        "date": "2024-02-22",
        "meals_num": 1,
        "meals_name": "中餐",
        "halls_id": "10",
        "halls_name": "教师餐厅",
        "menu_list": [
            {
                "name": "花菜肉片",
                "img_src": "/food/uploads/1701413265.jpeg",
                "menu_id": 969,
                "price": "0.00",
                "sort_name": "中餐",
                "sort_id": 23,
                "day_time": 1708531200,
                "mbm_id": 6657,
                "number_sum": -1,
                "meals_num": 1,
                "shoping_car": 1,
                "residue_menus": 0
            },
            {
                "name": "水煮巴沙鱼",
                "img_src": "/food/uploads/1701247595.jpeg",
                "menu_id": 967,
                "price": "0.00",
                "sort_name": "中餐",
                "sort_id": 23,
                "day_time": 1708531200,
                "mbm_id": 6658,
                "number_sum": -1,
                "meals_num": 1,
                "shoping_car": 1,
                "residue_menus": 0
            }
        ]
    },
    {
        "date": "2024-02-22",
        "meals_num": 2,
        "meals_name": "晚餐",
        "halls_id": "10",
        "halls_name": "教师餐厅",
        "menu_list": [
            {
                "name": "蒜蓉大排",
                "img_src": "/food/uploads/1702431212.jpeg",
                "menu_id": 981,
                "price": "5.00",
                "sort_name": "晚餐",
                "sort_id": 24,
                "day_time": 1708531200,
                "mbm_id": 6660,
                "number_sum": -1,
                "meals_num": 2,
                "shoping_car": 1,
                "residue_menus": 0
            },
            {
                "name": "可乐排骨",
                "img_src": "/food/uploads/1702430726.jpeg",
                "menu_id": 979,
                "price": "8.00",
                "sort_name": "晚餐",
                "sort_id": 24,
                "day_time": 1708531200,
                "mbm_id": 6661,
                "number_sum": -1,
                "meals_num": 2,
                "shoping_car": 1,
                "residue_menus": 0
            }
        ]
    },
    {
        "date": "2024-02-23",
        "meals_num": 0,
        "meals_name": "早餐",
        "halls_id": "10",
        "halls_name": "教师餐厅",
        "menu_list": [
            {
                "name": "蒸饺",
                "img_src": "/food/uploads/1695106710.jpeg",
                "menu_id": 121,
                "price": "4.00",
                "sort_name": "早餐",
                "sort_id": 22,
                "day_time": 1708617600,
                "mbm_id": 6671,
                "number_sum": -1,
                "meals_num": 0,
                "shoping_car": 1,
                "residue_menus": 0
            },
            {
                "name": "炒年糕",
                "img_src": "/food/uploads/1694765493.jpeg",
                "menu_id": 39,
                "price": "2.50",
                "sort_name": "早餐",
                "sort_id": 22,
                "day_time": 1708617600,
                "mbm_id": 6664,
                "number_sum": -1,
                "meals_num": 0,
                "shoping_car": 1,
                "residue_menus": 0
            }
        ]
    },
    {
        "date": "2024-02-23",
        "meals_num": 1,
        "meals_name": "中餐",
        "halls_id": "10",
        "halls_name": "教师餐厅",
        "menu_list": [
            {
                "name": "花菜肉片",
                "img_src": "/food/uploads/1701413265.jpeg",
                "menu_id": 969,
                "price": "0.00",
                "sort_name": "中餐",
                "sort_id": 23,
                "day_time": 1708617600,
                "mbm_id": 6676,
                "number_sum": -1,
                "meals_num": 1,
                "shoping_car": 1,
                "residue_menus": 0
            },
            {
                "name": "水煮巴沙鱼",
                "img_src": "/food/uploads/1701247595.jpeg",
                "menu_id": 967,
                "price": "0.00",
                "sort_name": "中餐",
                "sort_id": 23,
                "day_time": 1708617600,
                "mbm_id": 6677,
                "number_sum": -1,
                "meals_num": 1,
                "shoping_car": 1,
                "residue_menus": 0
            }
        ]
    },
    {
        "date": "2024-02-23",
        "meals_num": 2,
        "meals_name": "晚餐",
        "halls_id": "10",
        "halls_name": "教师餐厅",
        "menu_list": [
            {
                "name": "蒜蓉大排",
                "img_src": "/food/uploads/1702431212.jpeg",
                "menu_id": 981,
                "price": "5.00",
                "sort_name": "晚餐",
                "sort_id": 24,
                "day_time": 1708617600,
                "mbm_id": 6679,
                "number_sum": -1,
                "meals_num": 2,
                "shoping_car": 1,
                "residue_menus": 0
            },
            {
                "name": "可乐排骨",
                "img_src": "/food/uploads/1702430726.jpeg",
                "menu_id": 979,
                "price": "8.00",
                "sort_name": "晚餐",
                "sort_id": 24,
                "day_time": 1708617600,
                "mbm_id": 6680,
                "number_sum": -1,
                "meals_num": 2,
                "shoping_car": 1,
                "residue_menus": 0
            }
        ]
    }
]
返回:
{
    "code": 1,
    "msg": "",
    "data": 32.5
}
最后修改者: admin  2024-02-23 16:49:34 

009订单付款

编号  :  009

GET - http://qtlyxx.wzzd.cn/food/api?action=dininghall/open_api/Api/payment
请求参数
参数名 必传 缺省值 描述
order_id Y 订单ID
token Y
返回值
{
    "code": 1,
    "msg": "订单支付成功",
    "data": [
        {
            "user_name": "测试教师",
            "order_text": "蒜蓉大排×1;可乐排骨×1;",
            "id": 444798,
            "halls_id": 10,
            "day_time": 1708617600,
            "meals_num": 2,
            "weeks_num": 5,
            "create_time": "2024-02-21 11:39:10",
            "update_time": "2024-02-21 12:06:34",
            "user_id": 7044,
            "menu_number": 2,
            "total_prices": "13.00",
            "status": 2,
            "payment_time": 0
        }
    ]
}
最后修改者: admin  2024-02-23 16:49:46 

010订单部分退款

编号  :  010

GET - http://qtlyxx.wzzd.cn/food/api?action=dininghall/open_api/Api/refund
请求参数
参数名 必传 缺省值 描述
id Y 子订单ID
token Y
返回值
{
    "code": 1,
    "msg": "退款 8元 成功",
    "data": ""
}
最后修改者: admin  2024-02-23 16:50:02 

011订单全部退款

编号  :  011

GET - http://qtlyxx.wzzd.cn/food/api?action=dininghall/open_api/Api/allrefund
请求参数
参数名 必传 缺省值 描述
id Y 主订单id
token Y
返回值
{
    "code": 1,
    "msg": "三方入口全部退款 6.5元 成功",
    "data": ""
}
最后修改者: admin  2024-02-23 16:50:18 

012订单查询

编号  :  012

GET - http://qtlyxx.wzzd.cn/food/api?action=dininghall/open_api/Api/orderlist
请求参数
参数名 必传 缺省值 描述
user_id N
halls_id Y 餐厅类别(接口001)
user_type Y 用户分组(接口003)
dates Y 查询的时间区间
user_sex Y 性别(接口004)
user_name Y 用户姓名
status_type Y 订单状态(接口006)
meal_type Y 餐次(接口002)
dates_type Y 筛选订单的日期类型(接口005)
token Y
返回值
调用示例:
参数:
{
    "halls_id": 10,
    "user_type": [
        "1,3",
        "1,4",
        "1,5",
        "1,8",
        "1,9",
        "8,11",
        "8,12",
        "8,13",
        "8,15",
        "1,15",
        "1,16",
        "1,17",
        "8,19",
        "1,20",
        "8,21",
        "1,22"
    ],
    "dates": [
        "2023-12-01",
        "2024-02-23"
    ],
    "user_sex": [
        1,
        2
    ],
    "user_name": "",
    "status_type": [
        1,
        2,
        3,
        5,
        6,
        4,
        7
    ],
    "meal_type": [
        0,
        1,
        2,
        3,
        4,
        5
    ],
    "dates_type": "0"
}
返回:
{
    "code": 1,
    "msg": "",
    "data": [
        {
            "user_name": "测试教师",
            "order_text": "蒜蓉大排×1;可乐排骨×1;",
            "id": 444798,
            "halls_id": 10,
            "day_time": 1708617600,
            "meals_num": 2,
            "weeks_num": 5,
            "create_time": "2024-02-21 11:39:10",
            "update_time": "2024-02-21 12:11:42",
            "user_id": 7044,
            "menu_number": 0,
            "total_prices": "0.00",
            "status": 7,
            "payment_time": 0,
            "class": "测试组",
            "meal_name": "晚餐",
            "list": [
                {
                    "refund": 1,
                    "orders_notes": null,
                    "id": 479936,
                    "halls_id": 10,
                    "weeks_num": 5,
                    "meals_num": 2,
                    "menu_id": 979,
                    "menu_number": 1,
                    "api_user_id": 7044,
                    "day_time": 1708617600,
                    "order_id": 444798,
                    "affirm": 1,
                    "price": "8.00",
                    "total_prices": "8.00"
                },
                {
                    "refund": 1,
                    "orders_notes": null,
                    "id": 479935,
                    "halls_id": 10,
                    "weeks_num": 5,
                    "meals_num": 2,
                    "menu_id": 981,
                    "menu_number": 1,
                    "api_user_id": 7044,
                    "day_time": 1708617600,
                    "order_id": 444798,
                    "affirm": 1,
                    "price": "5.00",
                    "total_prices": "5.00"
                }
            ]
        },
        {
            "user_name": "测试教师",
            "order_text": "花菜肉片×1;水煮巴沙鱼×1;",
            "id": 444797,
            "halls_id": 10,
            "day_time": 1708617600,
            "meals_num": 1,
            "weeks_num": 5,
            "create_time": "2024-02-21 11:39:10",
            "update_time": 0,
            "user_id": 7044,
            "menu_number": 2,
            "total_prices": "0.00",
            "status": 1,
            "payment_time": 0,
            "class": "测试组",
            "meal_name": "中餐",
            "list": [
                {
                    "refund": 0,
                    "orders_notes": null,
                    "id": 479934,
                    "halls_id": 10,
                    "weeks_num": 5,
                    "meals_num": 1,
                    "menu_id": 967,
                    "menu_number": 1,
                    "api_user_id": 7044,
                    "day_time": 1708617600,
                    "order_id": 444797,
                    "affirm": 0,
                    "price": "0.00",
                    "total_prices": "0.00"
                },
                {
                    "refund": 0,
                    "orders_notes": null,
                    "id": 479933,
                    "halls_id": 10,
                    "weeks_num": 5,
                    "meals_num": 1,
                    "menu_id": 969,
                    "menu_number": 1,
                    "api_user_id": 7044,
                    "day_time": 1708617600,
                    "order_id": 444797,
                    "affirm": 0,
                    "price": "0.00",
                    "total_prices": "0.00"
                }
            ]
        }
    ]
}
最后修改者: admin  2024-02-23 16:50:28 

013订单详情

编号  :  013

GET - http://qtlyxx.wzzd.cn/food/api?action=dininghall/open_api/Api/orderinfo
请求参数
参数名 必传 缺省值 描述
order_id Y 订单ID
token Y
返回值
{
    "code": 1,
    "msg": "",
    "data": [
        {
            "refund": 1,
            "orders_notes": null,
            "id": 479935,
            "halls_id": 10,
            "weeks_num": 5,
            "meals_num": 2,
            "menu_id": 981,
            "menu_number": 1,
            "api_user_id": 7044,
            "day_time": "2024-02-23",
            "order_id": 444798,
            "affirm": 1,
            "price": "5.00",
            "total_prices": "5.00",
            "sort_id": 24,
            "name": "蒜蓉大排",
            "img_src": "/food/uploads/1702431212.jpeg",
            "pay_time": "2024-02-21 11:39:10",
            "refund_time": "2024-02-21 12:11:42"
        },
        {
            "refund": 1,
            "orders_notes": null,
            "id": 479936,
            "halls_id": 10,
            "weeks_num": 5,
            "meals_num": 2,
            "menu_id": 979,
            "menu_number": 1,
            "api_user_id": 7044,
            "day_time": "2024-02-23",
            "order_id": 444798,
            "affirm": 1,
            "price": "8.00",
            "total_prices": "8.00",
            "sort_id": 24,
            "name": "可乐排骨",
            "img_src": "/food/uploads/1702430726.jpeg",
            "pay_time": "2024-02-21 11:39:10",
            "refund_time": "2024-02-21 12:11:42"
        }
    ]
}