简要描述:
- 获取奖励数据接口
请求域名:
请求URL:
plugin.partner-reward.frontend.controllers.reward-log.getLogByType
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
reward_type | 是 | int | 奖励类型 1股东奖励/2平级奖励 |
返回示例:
{
"result": 1,
"msg": "获取数据成功",
"data": {
"not_rewarded": 102,
"rewarded": 3,
"data": [
{
"id": 3,
"uniacid": 3,
"uid": 1,
"order_sn": "sadas",
"price": 1,
"amount": 1,
"status": 1,
"type": 1,
"created_at": "1970-01-01 08:01:51",
"updated_at": null,
"settle_days": 11,
"receive_at": null,
"create_month": "2019-8",
"statement_at": null,
"status_name": "已奖励",
"type_name": "股东奖励",
"has_many_reward_log": [
{
"id": 6,
"uniacid": 3,
"uid": 1,
"order_sn": "asd",
"price": 1,
"amount": 1,
"status": 1,
"type": 1,
"created_at": "1970-01-01 08:01:51",
"updated_at": null,
"settle_days": 11,
"receive_at": null,
"create_month": "2019-8",
"statement_at": null,
"status_name": "已奖励",
"type_name": "股东奖励"
},
{
"id": 5,
"uniacid": 3,
"uid": 1,
"order_sn": "asdasd",
"price": 1,
"amount": 1,
"status": 0,
"type": 1,
"created_at": "1970-01-01 08:01:51",
"updated_at": null,
"settle_days": 11,
"receive_at": null,
"create_month": "2019-8",
"statement_at": null,
"status_name": "未奖励",
"type_name": "股东奖励"
},
{
"id": 4,
"uniacid": 3,
"uid": 1,
"order_sn": "dasd",
"price": 1,
"amount": 100,
"status": 0,
"type": 1,
"created_at": "1970-01-01 08:01:51",
"updated_at": null,
"settle_days": 111,
"receive_at": null,
"create_month": "2019-8",
"statement_at": null,
"status_name": "未奖励",
"type_name": "股东奖励"
},
{
"id": 3,
"uniacid": 3,
"uid": 1,
"order_sn": "sadas",
"price": 1,
"amount": 1,
"status": 1,
"type": 1,
"created_at": "1970-01-01 08:01:51",
"updated_at": null,
"settle_days": 11,
"receive_at": null,
"create_month": "2019-8",
"statement_at": null,
"status_name": "已奖励",
"type_name": "股东奖励"
}
]
},
{
"id": 1,
"uniacid": 3,
"uid": 1,
"order_sn": "sda",
"price": 1,
"amount": 1,
"status": 1,
"type": 1,
"created_at": "1970-01-01 08:18:31",
"updated_at": null,
"settle_days": 1,
"receive_at": null,
"create_month": "2019-7",
"statement_at": null,
"status_name": "已奖励",
"type_name": "股东奖励",
"has_many_reward_log": [
{
"id": 2,
"uniacid": 3,
"uid": 1,
"order_sn": "dfsdfs",
"price": 1,
"amount": 1,
"status": 0,
"type": 1,
"created_at": "1970-01-01 08:01:51",
"updated_at": null,
"settle_days": 11,
"receive_at": null,
"create_month": "2019-7",
"statement_at": null,
"status_name": "未奖励",
"type_name": "股东奖励"
},
{
"id": 1,
"uniacid": 3,
"uid": 1,
"order_sn": "sda",
"price": 1,
"amount": 1,
"status": 1,
"type": 1,
"created_at": "1970-01-01 08:18:31",
"updated_at": null,
"settle_days": 1,
"receive_at": null,
"create_month": "2019-7",
"statement_at": null,
"status_name": "已奖励",
"type_name": "股东奖励"
}
]
}
],
"last_page": 1
}
}
错误时返回:
返回data 参数说明:
参数名 | 类型 | 说明 |
---|---|---|
not_rewarded | int | 未奖励金额 |
rewarded | int | 已奖励金额 |
返回data.data参数说明:
参数名 | 类型 | 说明 |
---|---|---|
create_month | string | 月份 |
返回data.data.has_many_reward_log参数说明:
参数名 | 类型 | 说明 |
---|---|---|
order_sn | string | 订单编号 |
created_at | int | 创建时间 |
status_name | string | 是否奖励 |
amount | int | 奖励金额 |
备注:
- 更多返回错误代码请看首页的错误代码描述