🐞 fix(名将擂台): 名将擂台排行榜过期也不下榜

This commit is contained in:
luying
2023-01-05 15:51:15 +08:00
parent 55a4672a0d
commit f90cce8a5e

View File

@@ -757,7 +757,7 @@ export class Rank {
let param: RoleRankInfo | GuildRankInfo;
if (this.infoKey == REDIS_KEY.USER_INFO) {
if (nowSeconds() - userInfo.updatedAt > 2 * 30 * 24 * 60 * 60) {
if (this.key != REDIS_KEY.LADDER && nowSeconds() - userInfo.updatedAt > 2 * 30 * 24 * 60 * 60) {
return null;
}
param = new RoleRankInfo(userInfo);