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;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import { REFRESH_TIME, TIME_OUTPUT_TYPE, SHOP_REFRESH_TYPE } from '../consts';
|
||||
import { isDebugTime } from './util';
|
||||
import { isDebugTime } from './sdkUtil';
|
||||
|
||||
/**
|
||||
* 时间
|
||||
|
||||
+1
-14
@@ -12,7 +12,6 @@ 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');
|
||||
@@ -820,16 +819,4 @@ export function addToMap<T>(map: Map<T, number>, id: T, value: number) {
|
||||
// }, 0);
|
||||
|
||||
// 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;
|
||||
}
|
||||
// }
|
||||
Reference in New Issue
Block a user