🐞 fix(排行榜): 巅峰演武排行榜初始

This commit is contained in:
luying
2023-04-03 09:45:35 +08:00
parent 5ed4f9c228
commit 8edada667c

View File

@@ -1081,7 +1081,7 @@ export async function setRankRedisFromDb(type: string, args?: { serverId?: numbe
await r.setRankWithGuildInfoArrParam(guild.code, [guild.lv, guild.activeWeekly, guild.activeUpdateTime], guild);
}
} else if (type == REDIS_KEY.PVP_RANK) {
let seasonNum = await CounterModel.getCounter(COUNTER.PVP_SEASON_NUM);
let seasonNum: number = pinus.app.get('pvpSettleSeasonNum');
if(seasonNum > 0) {
let serverGroup = await getPVPServerGroup();
for(let [groupId, serverIds] of serverGroup) {