1.优化接口/api/v1/getPlayerGameRecord

2.增加接口日志记录接口request和response
This commit is contained in:
2026-05-13 09:59:15 +08:00
parent e74fc6069c
commit 6a1fd639a4
8 changed files with 365 additions and 81 deletions

View File

@@ -145,7 +145,7 @@
- 使用 `whereIn('player_id', $playerIds)` 做批量查询;
- 使用 `with(['dicePlayer'])` 或 join 预加载关联的玩家信息;
- 控制单页 `limit`,例如不超过 100 条
- 控制 `limit` 以兼顾负载(默认 `20`,上限 `2000`;接口已固定为「最近 7 天」时间窗)
### 4.4 Redis 与 DB 的整体协同