From b3c5aa9236e227686e0f6c86fb3f0a071d10891d Mon Sep 17 00:00:00 2001 From: dingchaolin Date: Mon, 13 Mar 2023 21:38:34 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(guild):=20=E8=AF=95=E7=82=BC?= =?UTF-8?q?=E5=A5=96=E5=8A=B1=E4=B8=8B=E5=91=A8=E9=87=8D=E5=A4=8D=E5=8F=91?= =?UTF-8?q?=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/guildTrainService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-server/app/services/guildTrainService.ts b/game-server/app/services/guildTrainService.ts index 95b933c9a..f76b389c1 100644 --- a/game-server/app/services/guildTrainService.ts +++ b/game-server/app/services/guildTrainService.ts @@ -229,7 +229,7 @@ export async function resetTrain(code: string, serverId: number) { for (let trainId = 1; trainId < guild.trainId; trainId++) { let { jinjieReward } = getArmyTrainJuDian(trainId); - if (trainRewards.indexOf(trainId)) { + if (trainRewards.indexOf(trainId) === -1) { goods.push(...jinjieReward); } }