修改错误日志
This commit is contained in:
@@ -467,9 +467,11 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
if(!checkNaturalStrings(teamCode)) return false;
|
||||
if(!checkNumberArray(killed)) return false;
|
||||
if(!checkNaturalNumbers(curRnd)) return false;
|
||||
if(!checkNaturalArray(bossHurts)) return false;
|
||||
if(!checkArrayCanEmpty(bossHurts)) return false;
|
||||
for(let { hid, dataId, hurtHp } of bossHurts) {
|
||||
if(!checkNaturalNumbers(hid, dataId, hurtHp)) return false;
|
||||
if(hid && !checkNaturalNumbers(hid)) return false;
|
||||
if(!checkNaturalNumbers(dataId)) return false;
|
||||
if(!isNumber(hurtHp)) return false
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -713,8 +715,8 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
{
|
||||
if(!checkNaturalNumbers(msg.warId)) return false;
|
||||
if(!checkArrayCanEmpty(msg.heroes)) return false;
|
||||
for(let { actorId, ai, dataId, order } of msg.heroes) {
|
||||
if(!checkNaturalNumbers(actorId, ai, dataId, order)) return false;
|
||||
for(let { actorId, dataId, order } of msg.heroes) {
|
||||
if(!checkNaturalNumbers(actorId, dataId, order)) return false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user