简要描述:
请求域名:
请求路由:
GET/&route=plugin.store-scan-code-meals.frontend.order-food.scan
请求参数说明:
参数名 |
类型 |
是否必需 |
说明 |
store_id |
int |
是 |
门店ID |
dt_id |
int |
是 |
餐桌ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "",
"data": {
"config": {
"id": 1,
"uniacid": 6,
"store_id": 8,
"min_people": 1,
"max_people": 8,
"tea_table_fee": "2.00",
"tableware_fee": "2.00",
"tea_table_name": "茶位费",
"tableware_name": "餐具费",
"backdrop_url": "https://img1.baidu.com/it/u=1890390320,3399874998&fm=253&fmt=auto&app=120&f=JPEG?w=1422&h=800",
"is_open": 1,
"created_at": "2025-08-04 15:38:25",
"backdrop_url_url": "https://img1.baidu.com/it/u=1890390320,3399874998&fm=253&fmt=auto&app=120&f=JPEG?w=1422&h=800",
"people_arr": [1,2,3,4,5,6,7,8]
},
"dining_table": {
"id": 3,
"uniacid": 6,
"store_id": 8,
"classify_id": 1,
"order_by": 0,
"table_num": 2,
"name": "2号桌",
"status": 1,
"created_at": "2025-07-23 16:10:57",
"status_name": "点餐中",
"has_one_classify": {
"id": 1,
"name": "测试分区"
}
},
"table_pre_order": {
"id": 1,
"uniacid": 6,
"store_id": 8,
"table_id": 3,
"creator_id": 2455,
"payer_id": 0,
"people_num": 3,
"tea_table_fee": "6.00",
"tableware_fee": "6.00",
"other_info": null,
"status": 0,
"created_at": "2025-08-08 09:58:28",
"dining_table": {
"id": 3,
"uniacid": 6,
"store_id": 8,
"classify_id": 1,
"order_by": 0,
"table_num": 2,
"name": "2号桌",
"status": 1,
"created_at": "2025-07-23 16:10:57",
"status_name": "点餐中",
"has_one_classify": {
"id": 1,
"name": "测试分区"
}
},
"tea_table_name": "茶位费",
"tableware_name": "餐具费",
"status_name": "点餐中",
"table_dishes": [
{
"id": 1,
"uniacid": 6,
"pre_id": 1,
"goods_id": 264,
"option_id": 0,
"tbc_total": 3,
"pre_total": 0,
"total": 0,
"dish_price": "0.00",
"is_add_dish": 0,
"status": 0,
"created_at": "2025-08-08 10:31:24",
"status_name": "待确认",
"qty": 3
}
]
}
}
}
data返回参数说明:
参数名 |
类型 |
说明 |
|
config |
obj |
门店点餐配置 |
|
dining_table |
obj |
餐桌信息 |
|
table_pre_order |
obj |
餐桌当前订单 |
|
config 参数说明:
参数名 |
类型 |
说明 |
|
store_id |
int |
门店ID |
|
min_people |
int |
最低就餐人数 |
|
max_people |
int |
最大就餐人数 |
|
tea_table_fee |
int |
茶位费 |
|
tableware_fee |
int |
餐具费 |
|
tea_table_name |
string |
茶位费自定义名称 |
|
tableware_name |
string |
餐具费自定义名称 |
|
backdrop_url_url |
string |
背景图片 |
|
people_arr |
array |
人数数组 |
|
dining_table 参数说明:
参数名 |
类型 |
说明 |
|
id |
int |
餐桌ID |
|
table_num |
int |
餐桌号 |
|
name |
string |
餐桌名称 |
|
meal_people_num |
int |
就餐人数 |
|
status_name |
string |
餐桌状态 |
|
status |
int |
状态:0空闲中、1点餐中、2就餐中 |
|
has_one_classify.id |
string |
餐桌分区ID |
|
has_one_classify.name |
string |
餐桌分区名称 |
|
table_pre_order 参数说明:
参数名 |
类型 |
说明 |
|
id |
int |
餐桌预订单ID |
|
table_id |
int |
餐桌ID |
|
store_id |
int |
门店ID |
|
people_num |
int |
就餐人数 |
|
tea_table_fee |
int |
茶位费 |
|
tableware_fee |
int |
餐具费 |
|
tea_table_name |
string |
茶位费自定义名称 |
|
tableware_name |
string |
餐具费自定义名称 |
|
status_name |
string |
状态名称 |
|
table_dishes |
array |
点餐菜品信息 |
|
table_pre_order.table_dishes 参数说明:
参数名 |
类型 |
说明 |
|
id |
int |
预菜品ID |
|
pre_id |
int |
餐桌预订单ID |
|
goods_id |
int |
商品ID |
|
option_id |
int |
商品规格ID |
|
tbc_total |
int |
菜品总数量 |
|
pre_total |
int |
待上菜数量 |
|
total |
int |
已上菜数量 |
|
qty |
int |
菜品数量 |
|
goods_price |
int |
商品单价 |
|
goods_title |
int |
商品名称 |
|
goods_thumb |
int |
商品图片 |
|
goods_option_title |
int |
商品规格名称 |
|