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;