修改debug模式开关读取地点

This commit is contained in:
luying
2022-05-16 11:43:44 +08:00
parent 51f859f120
commit 7e768a4065
12 changed files with 57 additions and 37 deletions
+12
View File
@@ -12,6 +12,7 @@ import { getTimeFunM } from './timeUtil';
import { Floor } from '../domain/activityField/gachaField';
import { WhiteListModel } from '../db/RegionWhiteList';
import { RewardInter } from './interface';
import { gameData } from './data';
const randomName = require("chinese-random-name");
const moment = require('moment');
const crypto = require('crypto');
@@ -821,3 +822,14 @@ export function addToMap<T>(map: Map<T, number>, id: T, value: number) {
// return { topLineup, topLineupCe };
// }
export function isDebugTime() {
return gameData.serverConst.DEBUG_TIME === 1;
}
export function isDebugPay() {
return gameData.serverConst.DEBUG_PAY === 1;
}
export function isCheckWord() {
return gameData.serverConst.CHECK_WORD === 1;
}