简要描述:

  • 酒柜时长券列表

请求域名:

  • http://xx.com

请求URL:

plugin.gradevin.frontend.consumer.coupon.index

参数:

参数名 是否必须 类型 说明
device_id int 设备ID

返回示例:

正确时返回:

{
  "result": 1,
  "msg": "ok",
  "data": {
    "record": {
      "current_page": 1,
      "data": [
        {
          "id": 1,
          "status": 0,
          "coupon_id": 1,
          "status_name": "未核销",
          "coupon": {
            "id": 1,
            "title": "优惠券1",
            "minute": 120
          }
        }
      ],
      "first_page_url": "http://localhost/addons/yun_shop/api.php?page=1",
      "from": 1,
      "last_page": 1,
      "last_page_url": "http://localhost/addons/yun_shop/api.php?page=1",
      "next_page_url": null,
      "path": "http://localhost/addons/yun_shop/api.php",
      "per_page": 15,
      "prev_page_url": null,
      "to": 1,
      "total": 1
    },
    "action": [
      {
        "name": "使用时长券",
        "api": "plugin.gradevin.frontend.consumer.coupon.use",
        "params": [
          {
            "key": "id",
            "name": "优惠券id",
            "must": true
          },
          {
            "key": "device_id",
            "name": "设备ID",
            "must": true
          }
        ]
      }
    ],
    "current_device": {
      "id": 1,
      "uniacid": 1,
      "device_no": "ABC239239239",
      "app_key": "kdfjakfdjsafk1233223",
      "name": "设备1",
      "member_id": 1,
      "province_id": 110000,
      "city_id": 110100,
      "district_id": 110102,
      "street_id": 110102001,
      "address": "西城都荟",
      "lng": "113.275995",
      "lat": "23.117055",
      "capital_limit": 100,
      "capital_before": 5,
      "capital_after": 10,
      "created_at": "2023-11-28 23:02:23",
      "updated_at": "2023-11-28 23:02:23"
    }
  }
}

返回参数说明:

参数名 类型 说明
data.record.data object 时长券列表数据
data.current_device object 当前设备
data.action object 功能操作

备注:

  • 更多返回错误代码请看首页的错误代码描述