POST/plugin.big-brand-ordering.api.cart.index
传入参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| store_code | string | 门店代号 |
| brand | string | 品牌代号 从品牌列表里获取 |
| order_type | int | 订单类型 1 自提 2 外卖 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "",
"data": {
"list": [
{
"id": 32,
"uniacid": 1,
"brand": "kfc",
"store_code": "GZH243",
"amount": 1,
"selected": "[{\"linkId\":3432,\"childLinkId\":\"\",\"quantity\":1,\"condimentItems\":[{\"condimentLinkId\":\"\",\"linkId\":\"1067\",\"quantity\":1},{\"condimentLinkId\":\"null_1\",\"linkId\":\"1142\",\"quantity\":1},{\"condimentLinkId\":\"null_2\",\"linkId\":\"1421\",\"quantity\":1}]}]",
"created_at": "2026-04-04 14:00:06",
"updated_at": "2026-04-04 14:00:06",
"member_id": 5,
"thumb": "https://image.quanma51.com/self/mahua/kfc/menu/eaadc35b8501473e88e4569bd0edea0f!img",
"price": "32.66",
"option": [
{
"title": "老北京鸡肉卷",
"num": 1
},
{
"title": "新奥尔良烤翅BBN(2块)",
"num": 1
},
{
"title": "葡式蛋挞BBN(1只)",
"num": 1
}
],
"title": "老北京小食三件套",
"order_type": 1,
"total_price": "32.66"
},
{
"id": 33,
"uniacid": 1,
"brand": "kfc",
"store_code": "GZH243",
"amount": 1,
"selected": "[{\"linkId\":3140,\"childLinkId\":\"\",\"quantity\":1,\"condimentItems\":[{\"condimentLinkId\":\"null_1\",\"linkId\":\"100082933\",\"quantity\":1},{\"condimentLinkId\":\"null_2\",\"linkId\":\"100018884\",\"quantity\":1},{\"condimentLinkId\":\"null_3\",\"linkId\":\"100000203\",\"quantity\":1},{\"condimentLinkId\":\"null_4\",\"linkId\":\"100082045\",\"quantity\":1}]}]",
"created_at": "2026-04-04 14:01:30",
"updated_at": "2026-04-04 14:01:30",
"member_id": 5,
"thumb": "https://image.quanma51.com/self/mahua/kfc/menu/038531b835344f1788c3beefba49f60a!img",
"price": "36.57",
"option": [
{
"title": "黄金SPA鸡排堡BBN(藤椒风味)",
"num": 1
},
{
"title": "热辣香骨鸡BBN(3块)",
"num": 1
},
{
"title": "薯条(小)",
"num": 1
},
{
"title": "爆汁三柠茶BBN(中)",
"num": 1
}
],
"title": "汉堡小食4件套(任选)",
"order_type": 1,
"total_price": "36.57"
}
],
"total_price": "69.23"
}
}
错误时返回:
{
"errcode": 500,
"errmsg": "invalid appid"
}
返回参数data说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| list | array | 购物车列表 |
| total_price | float | 购物车总价 |
返回参数data.list说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | string | 购物车id |
| store_code | string | 门店代号 |
| amount | string | 商品数量 |
| thumb | string | 商品图片 |
| price | string | 商品价格 |
| option | string | 套餐内容 |
| order_type | int | 订单类型 1 自提 2 外卖 |