From 8edada667cbd2c5a1aaa651e5e8c3a4c9734b41e Mon Sep 17 00:00:00 2001 From: luying Date: Mon, 3 Apr 2023 09:45:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E6=8E=92=E8=A1=8C=E6=A6=9C)?= =?UTF-8?q?:=20=E5=B7=85=E5=B3=B0=E6=BC=94=E6=AD=A6=E6=8E=92=E8=A1=8C?= =?UTF-8?q?=E6=A6=9C=E5=88=9D=E5=A7=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/rankService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-server/app/services/rankService.ts b/game-server/app/services/rankService.ts index cb587a1b0..2fda44c90 100644 --- a/game-server/app/services/rankService.ts +++ b/game-server/app/services/rankService.ts @@ -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) {