修改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
+2 -2
View File
@@ -4,7 +4,7 @@ import { UserModel } from "../../db/User";
import { LoginValidateData37 } from "../../domain/sdk";
import { DicRMB } from "../../pubUtils/dictionary/DicRMB";
import { nowSeconds } from "../../pubUtils/timeUtil";
import { resResult } from "../../pubUtils/util";
import { isDebugPay, resResult } from "../../pubUtils/util";
import { get37Md5SignA } from "../../pubUtils/sdkUtil";
import { pinus } from "pinus";
import { gameData } from "../../pubUtils/data";
@@ -39,7 +39,7 @@ export async function applyOrder37(localOrderID: string, roleId: string, product
time: nowSeconds(),
ext
}
if(gameData.serverConst.DEBUG_PAY == 1) {
if(isDebugPay()) {
body = {...body, money: DEBUG_PRICE}
}