🐞 fix(诸子列传): 修复参数校验错误
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user