Skip to content

Fix/signin real rank - #61

Merged
DaWesen merged 2 commits into
LanshanTeam:mainfrom
D4wn3R:fix/signin-real-rank
Oct 20, 2026
Merged

DaWesen merged 2 commits into
LanshanTeam:mainfrom
D4wn3R:fix/signin-real-rank

Conversation

@D4wn3R

@D4wn3R D4wn3R commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

问题:
签到插件只给出前100名用户的具体排名,100名之后被截断并返回-1
修复:
移除 100 名截断,彻底删除-1排名显示,兜底回复为“未上榜”

排行榜此前截断为前 100 名,第 100 名之外的用户签到后 getRank
返回哨兵值 -1,回复直接打印"排名第-1位"。移除截断让所有签到
用户留在榜上,签到/试试手气/状态查询都能拿到真实名次;同分
按用户 ID 稳定排序,避免 sort.Slice 不稳定导致同分用户名次
随机互换;回复模板对 -1 兜底为"未上榜"(仅历史数据残缺时出现)。
@D4wn3R
D4wn3R force-pushed the fix/signin-real-rank branch from c51be08 to fd41f06 Compare October 20, 2026 09:28
@DaWesen
DaWesen merged commit 49c2e5c into LanshanTeam:main Oct 20, 2026
2 checks passed
@D4wn3R
D4wn3R deleted the fix/signin-real-rank branch October 21, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants