🐞 fix(排行榜): 当第一名长时间不登录后总排行榜会没有数据

This commit is contained in:
luying
2023-05-29 15:22:46 +08:00
parent 5f14559752
commit 7e6fdf68a9

View File

@@ -822,9 +822,9 @@ export class Rank {
let param: RoleRankInfo | GuildRankInfo | LeagueRankInfo;
if (this.infoKey == REDIS_KEY.USER_INFO) {
if (this.key != REDIS_KEY.LADDER && this.key != REDIS_KEY.GVG_VESTIGE_MEMBER && nowSeconds() - userInfo.updatedAt > 2 * 30 * 24 * 60 * 60) {
return null;
}
// if (this.key != REDIS_KEY.LADDER && this.key != REDIS_KEY.GVG_VESTIGE_MEMBER && nowSeconds() - userInfo.updatedAt > 2 * 30 * 24 * 60 * 60) {
// return null;
// }
param = new RoleRankInfo(userInfo);
param.setInfo(rank, myId, scores[0], scores[1]);
} else if (this.infoKey == REDIS_KEY.GUILD_INFO) {