fix(authorization): 添加火柴人排名调试日志
添加详细日志显示返回的每条记录的区域信息,便于调试过滤问题。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
bdc6ba524f
commit
6c78e22000
|
|
@ -709,9 +709,15 @@ export class AuthorizationApplicationService {
|
||||||
// 按完成数量降序排序
|
// 按完成数量降序排序
|
||||||
rankings.sort((a, b) => b.completedCount - a.completedCount)
|
rankings.sort((a, b) => b.completedCount - a.completedCount)
|
||||||
|
|
||||||
|
// 详细日志:显示每条记录的区域信息
|
||||||
this.logger.log(
|
this.logger.log(
|
||||||
`[getStickmanRanking] 返回 ${rankings.length} 条排名数据`,
|
`[getStickmanRanking] 返回 ${rankings.length} 条排名数据,请求区域=${regionCode}`,
|
||||||
)
|
)
|
||||||
|
for (const r of rankings) {
|
||||||
|
this.logger.debug(
|
||||||
|
`[getStickmanRanking] - ${r.nickname} (${r.accountSequence}): regionCode=${r.regionCode}, completedCount=${r.completedCount}`,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
return rankings
|
return rankings
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue