🐞 fix(防破解): 202类型也从封号类型中排除
This commit is contained in:
@@ -3,7 +3,7 @@ import { BattleRecordModel } from '../../../db/BattleRecord';
|
|||||||
import { BattleSweepRecordModel } from '../../../db/BattleSweepRecord';
|
import { BattleSweepRecordModel } from '../../../db/BattleSweepRecord';
|
||||||
import { BattleCheatRecModel } from '../../../db/BattleCheatRec';
|
import { BattleCheatRecModel } from '../../../db/BattleCheatRec';
|
||||||
import { genCode, getReasonByWarType, getWarTypeName } from '../../../pubUtils/util';
|
import { genCode, getReasonByWarType, getWarTypeName } from '../../../pubUtils/util';
|
||||||
import { WAR_TYPE, EVENT_STATUS, REDIS_KEY, KING_EXP_RATIO_TYPE, TA_EVENT, ITEM_CHANGE_REASON, BLOCK_TYPE, CHECT_BLOCK_TYPE, CHECT_BATTLE_TYPE } from '../../../consts';
|
import { WAR_TYPE, EVENT_STATUS, REDIS_KEY, KING_EXP_RATIO_TYPE, TA_EVENT, ITEM_CHANGE_REASON, BLOCK_TYPE, CHECT_BLOCK_TYPE, CHECT_BATTLE_TYPE, CHECT_BATTLE_TYPE_HIDE } from '../../../consts';
|
||||||
import { checkDaily, checkDailyAndIncrease } from '../../../services/dailyBattleService';
|
import { checkDaily, checkDailyAndIncrease } from '../../../services/dailyBattleService';
|
||||||
import { checkTowerWar, towerBattleEnd } from '../../../services/battleService';
|
import { checkTowerWar, towerBattleEnd } from '../../../services/battleService';
|
||||||
import { WarReward } from '../../../services/warRewardService';
|
import { WarReward } from '../../../services/warRewardService';
|
||||||
@@ -562,7 +562,7 @@ export class NormalBattleHandler {
|
|||||||
if (roleId == undefined || type == undefined || sid == undefined) {
|
if (roleId == undefined || type == undefined || sid == undefined) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (type && type === CHECT_BATTLE_TYPE) {
|
if (type && (type === CHECT_BATTLE_TYPE || type === CHECT_BATTLE_TYPE_HIDE)) {
|
||||||
// console.log("blockByRecordBattleCheat----type=", type);
|
// console.log("blockByRecordBattleCheat----type=", type);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ export const CLOSE_LOGIN_WHEN_ONLINE_MAX = 1; // 是否在服务器达到最大
|
|||||||
export const MAX_ONLINE_USER_COUNT = 100000; // 最大在线人数限制
|
export const MAX_ONLINE_USER_COUNT = 100000; // 最大在线人数限制
|
||||||
|
|
||||||
export const CHECT_BATTLE_TYPE = 200; //非异常战斗类型
|
export const CHECT_BATTLE_TYPE = 200; //非异常战斗类型
|
||||||
|
export const CHECT_BATTLE_TYPE_HIDE = 202; // 隐藏武将
|
||||||
|
|
||||||
export enum TIME_OUTPUT_TYPE {
|
export enum TIME_OUTPUT_TYPE {
|
||||||
DATE = 1,
|
DATE = 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user