军团活动:参数错误
This commit is contained in:
@@ -978,14 +978,14 @@ export function checkRouteParam(route: string, msg: any) {
|
|||||||
{
|
{
|
||||||
let { cityId, code, damage, hid, round } = msg;
|
let { cityId, code, damage, hid, round } = msg;
|
||||||
if(!checkNaturalNumbers(cityId, damage, hid, round)) return false;
|
if(!checkNaturalNumbers(cityId, damage, hid, round)) return false;
|
||||||
if(!checkNumberArray(code)) return false;
|
if(!checkNaturalStrings(code)) return false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "guild.cityActivityHandler.battleEnd":
|
case "guild.cityActivityHandler.battleEnd":
|
||||||
{
|
{
|
||||||
let { cityId, code, isSuccess } = msg;
|
let { cityId, code, isSuccess } = msg;
|
||||||
if(!checkNaturalNumbers(cityId)) return false;
|
if(!checkNaturalNumbers(cityId)) return false;
|
||||||
if(!checkNumberArray(code)) return false;
|
if(!checkNaturalStrings(code)) return false;
|
||||||
if(!checkBoolean(isSuccess)) return false;
|
if(!checkBoolean(isSuccess)) return false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user