Skip to content

Fix #4063: 修复游戏版本列表去重问题 #4066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Wulian233
Copy link
Contributor

@Wulian233 Wulian233 commented Jul 5, 2025

被吞的版本共同点是 有发布时间一致的另一个版本
查阅源码发现内部是使用 TreeSet 基于发布时间 比较版本、排序

屏幕截图 2025-07-05 084714

return dateCompare;
}

return GameVersionNumber.asGameVersion(getSelfVersion()).compareTo(o.getSelfVersion());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return GameVersionNumber.asGameVersion(getSelfVersion())
    .compareTo(GameVersionNumber.asGameVersion(o.getSelfVersion()));

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接 GameVersionNumber.compare(getSelfVersion(), o.getSelfVersion()) 就可以了

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接 GameVersionNumber.compare(getSelfVersion(), o.getSelfVersion()) 就可以了

thanks❤️

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.

3 participants