远征:参数校验
This commit is contained in:
@@ -542,7 +542,7 @@ export function checkRouteParam(route: string, msg: any) {
|
|||||||
{
|
{
|
||||||
let { expeditionCode, expeditionId, battleCode, battleId, isSuccess, heroes, enemies, star, stars } = msg;
|
let { expeditionCode, expeditionId, battleCode, battleId, isSuccess, heroes, enemies, star, stars } = msg;
|
||||||
if(!checkNaturalStrings(expeditionCode, battleCode)) return false;
|
if(!checkNaturalStrings(expeditionCode, battleCode)) return false;
|
||||||
if(!checkNaturalNumbers(expeditionId, battleId, star)) return false;
|
if(!checkNaturalNumbers(expeditionId, battleId)) return false;
|
||||||
if(!checkBoolean(isSuccess)) return false;
|
if(!checkBoolean(isSuccess)) return false;
|
||||||
if(!checkExpeditionBattleHeroFormat(heroes, enemies)) return false;
|
if(!checkExpeditionBattleHeroFormat(heroes, enemies)) return false;
|
||||||
if(!checkNumberArray(stars)) return false;
|
if(!checkNumberArray(stars)) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user