Repository navigation
Fix/signin real rank - #61
Merged
Merged
Conversation
排行榜此前截断为前 100 名,第 100 名之外的用户签到后 getRank 返回哨兵值 -1,回复直接打印"排名第-1位"。移除截断让所有签到 用户留在榜上,签到/试试手气/状态查询都能拿到真实名次;同分 按用户 ID 稳定排序,避免 sort.Slice 不稳定导致同分用户名次 随机互换;回复模板对 -1 兜底为"未上榜"(仅历史数据残缺时出现)。
D4wn3R
force-pushed
the
fix/signin-real-rank
branch
from
October 20, 2026 09:28
c51be08 to
fd41f06
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题:
签到插件只给出前100名用户的具体排名,100名之后被截断并返回-1
修复:
移除 100 名截断,彻底删除-1排名显示,兜底回复为“未上榜”