简要描述:
- 获取用户的消费积分的明细记录
请求域名:
- http://xx.com
请求URL:
GET:plugin.universal-card.frontend.store-discount.privilege
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
lng | 是 | int | 经纬度 |
lat | 是 | int | 经纬度 |
week | 否 | int | 星期几 |
day | 否 | int | 几号 |
city_name | 是 | int | 城市名 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"total": 1,
"per_page": 15,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 1,
"data": [
{
"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,
"unit": "km",
"full_address": "",
"dispatch": "支持快递、",
"average_score": 0,
"order_total": 0,
"has_many_privilege": [
{
"id": 2,
"uniacid": 6,
"display_order": 32,
"store_id": 8,
"title": "王企鹅",
"discount_type": 0,
"discount_weeks": null,
"discount_days": null,
"discount_time": "",
"discount_value": "4.0",
"is_open": 1,
"member_level": [
"7",
"8",
"9"
],
"use_scene": "[\"32\",\"31\"]",
"usage_count": 12,
"created_at": "2018-12-26 11:50:48",
"use_cashier": 0,
"use_store": 0
},
{
"id": 3,
"uniacid": 6,
"display_order": 12,
"store_id": 8,
"title": "测试1",
"discount_type": 1,
"discount_weeks": "",
"discount_days": "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31",
"discount_time": null,
"discount_value": "5.0",
"is_open": 1,
"member_level": [
"7",
"8",
"9"
],
"use_scene": "[\"32\",\"31\"]",
"usage_count": 1,
"created_at": "2018-12-26 14:13:38",
"use_cashier": 0,
"use_store": 0
},
{
"id": 1,
"uniacid": 6,
"display_order": 2,
"store_id": 8,
"title": "测试",
"discount_type": 2,
"discount_weeks": "1,2,3,4",
"discount_days": "",
"discount_time": "",
"discount_value": "5.0",
"is_open": 1,
"member_level": [
"7",
"8",
"9"
],
"use_scene": "[\"32\",\"31\"]",
"usage_count": 31,
"created_at": "2018-12-26 11:35:36",
"use_cashier": 0,
"use_store": 0
}
]
}
]
}
}
错误时返回:
{
"result": 0,
"msg": "错误信息",
"data": []
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
has_many_privilege.title | string | 特权活动名称 |
has_many_privilege.discount_value | string | 特权活动折扣 |