🐞 fix(诸子列传): 修复参数校验错误

This commit is contained in:
luying
2023-07-13 11:43:02 +08:00
parent 2f47d16fc7
commit 751d172333

View File

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