简要描述:
请求域名:
- http://xx.com
请求URL:
POST:plugin.share-coupons.Frontend.controllers.list.index
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": [
{
"id": 60,
"coupon_id": 5,
"used": 0,
"use_time": 0,
"get_time": "2020-08-12 17:14:27",
"time_start": "2020-05-19",
"time_end": "2020-11-06",
"belongs_to_coupon": {
"id": 5,
"name": "优惠券测试",
"coupon_method": 2,
"deduct": "0.00",
"discount": "5.00",
"enough": 0,
"use_type": 0,
"category_ids": null,
"categorynames": null,
"goods_ids": null,
"goods_names": null,
"storenames": null,
"time_limit": 1,
"time_days": 0,
"time_start": "2020-05-19 00:00:00",
"time_end": "2020-11-06 00:00:00",
"total": 98,
"money": "0.00",
"credit": 0,
"plugin_id": 0,
"coupon_type_name": "平台商品",
"start": "2020-05-19",
"end": "2020-11-06"
},
"over_due": true,
"api_limit": "商城通用",
"combine": true,
"num": 5
},
{
"id": 30,
"coupon_id": 1,
"used": 0,
"use_time": 0,
"get_time": "2019-12-17 09:10:29",
"time_start": "2019-12-17",
"time_end": "不限时间",
"belongs_to_coupon": {
"id": 1,
"name": "优惠券",
"coupon_method": 1,
"deduct": "9.99",
"discount": "9.00",
"enough": 20,
"use_type": 0,
"category_ids": null,
"categorynames": null,
"goods_ids": null,
"goods_names": null,
"storenames": null,
"time_limit": 0,
"time_days": 0,
"time_start": "2020-05-09 00:00:00",
"time_end": "2020-05-16 00:00:00",
"total": 100,
"money": "0.00",
"credit": 0,
"plugin_id": 0,
"coupon_type_name": "平台商品",
"start": "2019-12-17",
"end": "不限时间"
},
"api_limit": "商城通用",
"combine": false,
"num": 1
},
]
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
result | int | 0:失败,1:成功 |
msg | string | 提示消息 |
data | array | 返回数据 |
返回参数 data 说明:
参数名 | 类型 | 说明 |
---|
备注:
用法和优惠券未使用(合并)的用法一样