1.优化接口/api/v1/getPlayerGameRecord
2.增加接口日志记录接口request和response
This commit is contained in:
17
API对接文档.md
17
API对接文档.md
@@ -166,15 +166,16 @@ signature = md5(agent_id + secret + time)
|
||||
|
||||
| 参数名 | 必填 | 类型 | 说明 |
|
||||
| --- | --- | --- | --- |
|
||||
| username | 否 | string | 不传则查询全量(按时间/分页) |
|
||||
| start_create_time | 否 | string | 开始时间(与数据库存储格式一致) |
|
||||
| end_create_time | 否 | string | 结束时间(与数据库存储格式一致) |
|
||||
| page | 否 | int | 默认 1 |
|
||||
| limit | 否 | int | 默认 20,最大 100 |
|
||||
| username | 否 | string | 不传则不按用户筛选;数据仅来自「最近 7 天」时间窗(见下) |
|
||||
| start_create_time | 否 | string | 开始时间;与 `end_create_time` 均不传时,服务端默认最近 7 天 |
|
||||
| end_create_time | 否 | string | 结束时间 |
|
||||
| limit | 否 | int | 返回条数上限,默认 20;小于 1 或大于 2000 时按 20 处理 |
|
||||
|
||||
**时间规则**:仅允许查询「当前服务器时间起向前 7 天」内的 `create_time`;`start_create_time` 与 `end_create_time` 的跨度不得超过 7 天;`end_create_time` 晚于当前时间时按当前时间截断。非法区间返回参数错误。
|
||||
|
||||
#### 响应说明
|
||||
|
||||
返回游玩记录列表,并附带 `dice_player`(包含 `id/username/phone`)。
|
||||
返回游玩记录列表(按 `id` 倒序,最多 `limit` 条),并附带 `dice_player`(包含 `id/username/phone`)。
|
||||
|
||||
### 3.4 获取钱包流水
|
||||
|
||||
@@ -182,7 +183,7 @@ signature = md5(agent_id + secret + time)
|
||||
- **方法**:POST
|
||||
- **请求头**:`auth-token`
|
||||
|
||||
参数与分页规则同 3.3,返回钱包流水列表(附带 `dice_player`)。
|
||||
参数与时间规则同 3.3(无 `page`,仅 `limit` 限制条数),返回钱包流水列表(附带 `dice_player`)。
|
||||
|
||||
### 3.5 获取中奖券获取记录
|
||||
|
||||
@@ -190,7 +191,7 @@ signature = md5(agent_id + secret + time)
|
||||
- **方法**:POST
|
||||
- **请求头**:`auth-token`
|
||||
|
||||
参数与分页规则同 3.3,返回中奖券记录列表(附带 `dice_player`)。
|
||||
参数与时间规则同 3.3,返回中奖券记录列表(附带 `dice_player`)。
|
||||
|
||||
### 3.6 平台钱包转入/转出
|
||||
|
||||
|
||||
Reference in New Issue
Block a user