简要描述:
- 获取门店列表
请求域名:
- http://xx.com
请求URL:
GET/&route=plugin.universal-card.frontend.store-discount.get-store-list
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
lng | 是 | int | 经纬度 |
lat | 是 | int | 经纬度 |
city_name | 是 | int | 城市名 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"discount": null,
"store_list": {
"total": 3,
"per_page": 15,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 3,
"data": [
{
"id": 6,
"thumb": "http://dev4.yunzshop.com/attachment/images/6/2017/11/ZKN4AVZh5xcfXz1ZnOX94f33kkwkLX.png",
"store_name": "Joe的店",
"category_id": 11,
"mobile": "15220038141",
"dispatch_type": [
"1",
"2",
"3"
],
"longitude": "113.266943",
"latitude": "23.191411",
"cashier_id": 102,
"specify_show": 1,
"operating_state": 0,
"distance": 8.8,
"discount": "0.00",
"unit": "km",
"full_address": "",
"dispatch": "支持快递、自提、核销、",
"average_score": 0,
"order_total": 46
},
{
"id": 7,
"thumb": "",
"store_name": "测试",
"category_id": 2,
"mobile": "15219025049",
"dispatch_type": null,
"longitude": "116.403851",
"latitude": "39.915177",
"cashier_id": 127,
"specify_show": 0,
"operating_state": 0,
"distance": 1873.1,
"discount": "",
"unit": "km",
"full_address": "",
"dispatch": "支持",
"average_score": 0,
"order_total": 0
},
{
"id": 8,
"thumb": "http://localhost/attachment/images/6/2018/08/f2e2rWKu2eQ08868D1A2we2kCycc3J.jpg",
"store_name": "轻微的",
"category_id": 11,
"mobile": "15012345678",
"dispatch_type": [
"1"
],
"longitude": "12",
"latitude": "21",
"cashier_id": 176,
"specify_show": 1,
"operating_state": 1,
"distance": 10169.8,
"discount": "2.00",
"unit": "km",
"full_address": "",
"dispatch": "支持快递、",
"average_score": 0,
"order_total": 0
}
]
}
}
}
错误时返回:
{
"result": 0,
"msg": "错误信息",
"data": []
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
store_list.data.discount | string | 平日折扣 |