简要描述:
请求URL:
GET/plugin.love-redpack.frontend.redpack.homePage
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
status | true | int | 红包状态,获取领取记录时,status=2, 获取过期红包时,status=-1 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"can_total": 0,
"stored_total": 3,
"gain_total": 2,
"past_total": 1,
"list": {
"current_page": 1,
"data": [
{
"id": 3,
"uniacid": 5,
"uid": 698211,
"limit_days": 2,
"love_ratio": "70.00",
"love": "+7.00",
"point_ratio": "20.00",
"point": "2.00",
"commission_ratio": "10.00",
"commission": "1.00",
"status": 2,
"get_at": 1624350025,
"created_at": "2021-06-22 15:54:24",
"updated_at": "2021-06-22 16:20:25",
"deleted_at": null,
"past_at": null,
"date": "2021-06-22 15:54:24",
"status_name": "已领取",
"get_time": "2021-06-22 16:20:25",
"past_time": "2021-06-24 15:54:24"
}
],
"first_page_url": "http://mdzz.com/admin/shop?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://mdzz.com/admin/shop?page=1",
"next_page_url": null,
"path": "http://mdzz.com/admin/shop",
"per_page": 15,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
can_total | int | 可领取红包数量 |
stored_total | int | 累计获得数量 |
gain_total | int | 已领取数量 |
past_total | int | 已过期数量 |
list->data | arr | 红包记录,带分页 |
data->id | int | 红包记录id |
data->date | str | 如果是领取记录,date为领取时间. 如果是过期红包,date为过期时间 |
data->love | float | 领取爱心值数量 |