From 751d172333fe167975730e10ee7aef8ff93c9f99 Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 13 Jul 2023 11:43:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E8=AF=B8=E5=AD=90=E5=88=97?= =?UTF-8?q?=E4=BC=A0):=20=E4=BF=AE=E5=A4=8D=E5=8F=82=E6=95=B0=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/checkParam.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/game-server/app/services/checkParam.ts b/game-server/app/services/checkParam.ts index 2648ebe0b..ccc9c74a0 100644 --- a/game-server/app/services/checkParam.ts +++ b/game-server/app/services/checkParam.ts @@ -2012,23 +2012,23 @@ export function checkRouteParam(route: string, msg: any) { if(!isBoolean(msg.hasComment)) return false; break; } - case "role.authorsBookHandler.starUp": + case "role.authorBookHandler.starUp": { if(!checkNaturalNumbers(msg.bookId, msg.subId, msg.star)) return false; if(!isBoolean(msg.useItem)) return false; break; } - case "role.authorsBookHandler.resetAuthor": + case "role.authorBookHandler.resetAuthor": { if(!checkNaturalNumbers(msg.bookId, msg.subId, msg.star)) return false; break; } - case "role.authorsBookHandler.buySpirit": + case "role.authorBookHandler.buySpirit": { if(!checkNaturalNumbers(msg.id, msg.count)) return false; break; } - case "role.authorsBookHandler.decomposeSpirit": + case "role.authorBookHandler.decomposeSpirit": { if(!checkNaturalArray(msg.spirits)) return false; for(let { id, count } of msg.spirits) {