简要描述:
会员卡消费记录
请求域名:
- http://xx.com
请求路由:
route=plugin.water-machine.frontend.consumer.member-card.consumption
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"current_page": 1,
"data": [
{
"id": 5,
"card_no": "60110013800",
"amount": "4.00",
"balance": "2453.15",
"created_at": "2023-02-27 18:14:41"
},
{
"id": 6,
"card_no": "60110013800",
"amount": "4.00",
"balance": "2457.15",
"created_at": "2023-02-27 18:14:41"
}
],
"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": 2,
"total": 2
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
data.card_no | string | 消费金额 |
data.amount | string | 消费金额 |
data.balance | string | 卡余额 |
data.created_at | string | 时间 |