From 1f8674b443228ecfd2b1c6a7e8556e59aa908976 Mon Sep 17 00:00:00 2001 From: luying Date: Wed, 20 Jul 2022 19:20:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9C=E5=BE=81=EF=BC=9A=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E8=B7=B3=E5=85=B3=E7=9A=84=E4=B8=80=E9=83=A8=E5=88=86=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=EF=BC=8Cskip=E4=B9=8B=E5=90=8E=E6=94=B9=E8=B0=83?= =?UTF-8?q?=E7=94=A8getStatus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../battle/handler/expeditionBattleHandler.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/game-server/app/servers/battle/handler/expeditionBattleHandler.ts b/game-server/app/servers/battle/handler/expeditionBattleHandler.ts index 58bbde3b8..18edcd89a 100644 --- a/game-server/app/servers/battle/handler/expeditionBattleHandler.ts +++ b/game-server/app/servers/battle/handler/expeditionBattleHandler.ts @@ -19,7 +19,6 @@ import * as dicParam from '../../../pubUtils/dicParam'; import { getSeconds, nowSeconds } from '../../../pubUtils/timeUtil'; import { reportTAEvent } from '../../../services/sdkService'; import { getSumCe } from '../../../services/playerCeService'; -import { HeroModel } from '../../../db/Hero'; import { vipCanSkipExpedition } from '../../../services/activity/monthlyTicketService'; export default function (app: Application) { @@ -240,13 +239,6 @@ export class ExpeditionBattleHandler { if (gameData.expedition.has(expeditionId + 1)) { await findOrCreateEnemies(roleId, expeditionRecord.myCe, expeditionCode, expeditionId + 1, EXPEDITION_WAR_RECORD_STATUS.WAITING); } - - let expeditionWarRecords = await ExpeditionWarRecordModel.getRecordByCode(expeditionCode); - let curLv = 0; - if (expeditionWarRecords.length > 0) { - curLv = expeditionWarRecords[expeditionWarRecords.length - 1].expeditionId; - } - await checkTaskInSkipExpedition(serverId, roleId, sid, battleId); return resResult(STATUS.SUCCESS, { @@ -254,9 +246,7 @@ export class ExpeditionBattleHandler { expeditionId, battleId, goods: reward, - expeditionPoint: role.expeditionPoint, - expeditionWarRecord: expeditionWarRecords, - curLv + expeditionPoint: role.expeditionPoint }); }