debug:修改3个判断debug的方法的位置

This commit is contained in:
luying
2022-05-23 11:22:43 +08:00
parent 93ab2c7bbc
commit 4110ba242e
11 changed files with 30 additions and 33 deletions
+13 -1
View File
@@ -3,7 +3,7 @@ import { request37 } from './httpUtil';
import { nowSeconds } from './timeUtil';
import { LoginValidataReturn37, Chat37Params, GetServerListParam } from '../domain/sdk';
import * as crypto from 'crypto'
import { isDebugPay } from './util';
import { gameData } from './data';
// 通用加密方法
@@ -145,4 +145,16 @@ export function checkParamPrice(orderPrice: number, paramPrice: string) {
if(!isDebugPay() && orderPrice != parseFloat(paramPrice)) return false;
if(isDebugPay() && parseFloat(paramPrice) != DEBUG_PRICE) return false;
return true
}
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;
}