加密:修复校验接口不通过问题

This commit is contained in:
luying
2022-07-26 20:47:01 +08:00
parent 815b5718ec
commit 5c7683580a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -556,9 +556,9 @@ export function checkRouteParam(route: string, msg: any) {
}
case "battle.normalBattleHandler.battleEnd":
{
let { battleCode, battleId, isSuccess, heroes, star, stars, activityId = 0, pageIndex = 0 } = msg;
let { battleCode, battleId, isSuccess, heroes, stars, activityId = 0, pageIndex = 0 } = msg;
if(!checkNaturalStrings(battleCode)) return false;
if(!checkNaturalNumbers(battleId, star, activityId, pageIndex)) return false;
if(!checkNaturalNumbers(battleId, activityId, pageIndex)) return false;
if(!checkBoolean(isSuccess)) return false;
if(!checkNumberArray(heroes, stars)) return false;
break;