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) {