From 69c75da6fca0f41e074d7748fe5789260c97a132 Mon Sep 17 00:00:00 2001 From: luying Date: Wed, 30 Dec 2020 19:50:01 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=A5=87=E9=81=87=E6=8C=91=E6=88=98?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=88=90=E5=8A=9F=E7=9A=84=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E7=AE=97=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/eventSercive.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game-server/app/services/eventSercive.ts b/game-server/app/services/eventSercive.ts index 3ee1b4841..973303c28 100644 --- a/game-server/app/services/eventSercive.ts +++ b/game-server/app/services/eventSercive.ts @@ -313,7 +313,7 @@ export function checkEventStatus(type: number, status: number) { } else if (status == EVENT_RECORD_STATUS.BATTLE_FAIL) { flag = true; } else { - flag = false; + flag = true; } } else { if(status == EVENT_RECORD_STATUS.WAITING) { @@ -337,7 +337,7 @@ export function getEventSuccessStatus(type: number, status: number, question: Ar if(type == EVENT_TYPE.BATTLE) { if(status == EVENT_RECORD_STATUS.BATTLE_SUCCESS) { isSuccess = true; - } else if (status == EVENT_RECORD_STATUS.BATTLE_FAIL) { + } else { isSuccess = false; } } else if(type == EVENT_TYPE.BOX) {