debug:修改3个判断debug的方法的位置
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user