🐞 fix(排行榜): 当第一名长时间不登录后总排行榜会没有数据
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user