diff --git a/game-server/app/services/pvpService.ts b/game-server/app/services/pvpService.ts index 4536f8a65..cc4240c0f 100644 --- a/game-server/app/services/pvpService.ts +++ b/game-server/app/services/pvpService.ts @@ -363,7 +363,7 @@ export function getRefOppCnt(refOppCnt: number, refOppTime: Date) { export async function findPvpDefAllByRoleId(roleId: string) { let pvpDefense = await PvpDefenseModel.findByRoleIdIncludeAll(roleId); - let {warId, seasonNum, seasonEndTime} = await SystemConfigModel.findSystemConfig(); + let { warId, seasonNum, seasonEndTime } = await SystemConfigModel.findSystemConfig(); if (pvpDefense.seasonNum !== seasonNum) { let { score, pLv, winStreakNum, heroScores, challengeCnt, challengeRefTime } = await pinus.app.rpc.systimer.systimerRemote.setPvpDefResult.toServer('systimer-server-1', pvpDefense, seasonNum, seasonEndTime); pvpDefense.score = score; @@ -372,6 +372,8 @@ export async function findPvpDefAllByRoleId(roleId: string) { pvpDefense.heroScores = heroScores; pvpDefense.challengeCnt = challengeCnt; pvpDefense.challengeRefTime = challengeRefTime; + pvpDefense.seasonNum = seasonNum; + pvpDefense.seasonEndTime = seasonEndTime; } let {challengeCnt, challengeRefTime} = refresh(pvpDefense.challengeCnt, pvpDefense.challengeRefTime, pvpDefense.seasonEndTime); let { refOppCnt, refOppTime } = getRefOppCnt(pvpDefense.refOppCnt, pvpDefense.refOppTime); // 刷新次数