校验:count不应为负数的校验

This commit is contained in:
luying
2022-06-10 14:42:30 +08:00
parent 704560a37f
commit c74865e315
13 changed files with 28 additions and 15 deletions
@@ -299,6 +299,8 @@ export class NormalBattleHandler {
let serverId = session.get('serverId');
let ip = session.get('ip');
if(count < 0) return resResult(STATUS.WRONG_PARMS);
let warInfo = gameData.war.get(battleId);
if (!warInfo) {
return resResult(STATUS.BATTLE_MISS_INFO);