From 0228c12c6b6d2aace48d46b77f6d1498297e8f1b Mon Sep 17 00:00:00 2001 From: luying Date: Fri, 12 Aug 2022 17:28:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=A1=E9=AA=8C=EF=BC=9A=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/checkParam.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-server/app/services/checkParam.ts b/game-server/app/services/checkParam.ts index 825a8486e..f0d247a61 100644 --- a/game-server/app/services/checkParam.ts +++ b/game-server/app/services/checkParam.ts @@ -1711,7 +1711,7 @@ function checkBoolean(...params: boolean[]) { function checkBooleanIfExist(...params: boolean[]) { for(let param of params) { - if(!isBoolean(param)) return false; + if(param != undefined && !isBoolean(param)) return false; } return true; }