From 5bf690bf03bf7107d1a714b1bab626dfad18d7e8 Mon Sep 17 00:00:00 2001 From: luying Date: Mon, 17 Oct 2022 20:28:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=85=E5=B3=B0=E6=BC=94=E6=AD=A6=EF=BC=9A?= =?UTF-8?q?=E6=96=B0=E5=8F=B7=E4=B8=8D=E5=BC=B9=E7=BB=93=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/pvpService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-server/app/services/pvpService.ts b/game-server/app/services/pvpService.ts index 4ee1bffd3..d54101a06 100644 --- a/game-server/app/services/pvpService.ts +++ b/game-server/app/services/pvpService.ts @@ -368,7 +368,7 @@ export async function comsumeChallengeCnt(challengeCnt: number, challengeRefTime export async function sendLastSeasonRewardIfNotSent(pvpDefense: PvpDefenseType) { let seasonSettleNum: number = pinus.app.get('pvpSettleSeasonNum'); console.log('##### sendLastSeasonRewardIfNotSent seasonSettleNum', seasonSettleNum) - if(seasonSettleNum && !await checkHasSettled(seasonSettleNum, pvpDefense.roleId)) { + if(seasonSettleNum && pvpDefense.score && !await checkHasSettled(seasonSettleNum, pvpDefense.roleId)) { let oldPvpCongig = await PVPConfigModel.findPVPConfig(seasonSettleNum); let result = await sendPVPRewardToUser(pvpDefense, seasonSettleNum, oldPvpCongig.seasonEndTime); pvpDefense = result.pvpDefense;