门店详情 - 获取购物车
创建于 2022-04-08 / 最近更新于 2022-04-08 /
1001
字体:
[默认]
[大]
[更大]
简要描述
门店详情 - 获取购物车
接口版本
版本号 | 制定人 | 制定日期 | 修订日期 |
---|---|---|---|
1.0.0 | Devil | 2020-09-29 |
请求URL
plugins/index&pluginsname=realstore&pluginscontrol=detail&pluginsaction=cartdata
请求方式
POST
公共参数
参数名 | 是否必须 | 类型 | 默认值 | 描述 |
---|---|---|---|---|
application | 是 | string | web | 请求应用、参考公共中详解 |
application_client_type | 是 | string | pc | 请求客户端、参考公共中详解 |
token | 否 | string | token |
请求参数
{
"id": "1",
"buy_use_type_index": "0",
"lng": 0,
"lat": 0
}
参数名 | 是否必须 | 类型 | 默认值 | 描述 |
---|---|---|---|---|
id | 是 | int | 门店id | |
buy_use_type_index | 是 | int | 下单类型 | |
lng | 是 | int | 经度 | |
lat | 是 | int | 纬度 |
返回示例
正确时返回
{
"msg": "success",
"code": 0,
"data": {
"buy_number": 1,
"total_price": "4139.10",
"data": [
{
"id": "1402",
"user_id": "2638",
"goods_id": "1",
"title": "MIUI/小米 小米手机4 小米4代 MI4智能4G手机包邮 黑色 D-LTE(4G)/TD-SCD",
"images": "https://d1.shopxo.vip/static/upload/images/goods/2019/01/14/1547450781101144.jpg",
"original_price": "3200.00",
"price": "1890.00",
"stock": "1",
"spec": null,
"add_time": "1649409594",
"upd_time": "0",
"inventory_unit": "步",
"is_shelves": "1",
"is_delete_time": "0",
"buy_min_number": "1",
"buy_max_number": "885",
"model": "",
"site_type": "-1",
"is_invalid": 0,
"inventory": "885",
"spec_weight": "0",
"spec_coding": "",
"spec_barcode": "",
"extends": null,
"goods_url": "/pages/goods-detail/goods-detail?id=1",
"images_old": "/static/upload/images/goods/2019/01/14/1547450781101144.jpg",
"total_price": "1890.00",
"is_error": 0,
"error_msg": ""
}
]
}
}
错误时返回
{
"msg": "error",
"code": -1,
"data": []
}
返回参数说明 -> data
参数名 | 是否必须 | 类型 | 描述 |
---|---|---|---|
buy_number | 是 | int | 购物车数量 |
total_price | 是 | float | 购物车总额 |
data | 是 | array | 购物车数据 |
备注
更多返回错误代码请看首页的错误代码描述
0 人点赞过