From 39b6273a8b53d256f7ff91a1454b5816e3939fc4 Mon Sep 17 00:00:00 2001 From: zhangxk Date: Fri, 7 Jul 2023 16:32:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=A0=B4=E8=A7=A3=E5=B0=81=E5=8F=B7):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3=E5=8F=82=E6=95=B0=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/battle/handler/normalBattleHandler.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/game-server/app/servers/battle/handler/normalBattleHandler.ts b/game-server/app/servers/battle/handler/normalBattleHandler.ts index bcff36352..cbd53c60c 100644 --- a/game-server/app/servers/battle/handler/normalBattleHandler.ts +++ b/game-server/app/servers/battle/handler/normalBattleHandler.ts @@ -558,6 +558,9 @@ export class NormalBattleHandler { * @returns */ async blockByRecordBattleCheat(roleId: string, type: number) { + if(roleId == undefined || type == undefined){ + return; + } if (type && type === CHECT_BATTLE_TYPE) { // console.log("blockByRecordBattleCheat----type=", type); return;