返利:修改返利逻辑

This commit is contained in:
luying
2022-09-17 11:44:33 +08:00
parent 3a1e2e08d1
commit 9d9efc451d
5 changed files with 27 additions and 17 deletions

View File

@@ -41,6 +41,8 @@ export interface DicServerConst {
readonly ACCESS_CODE_EXPIRE_TIME: number;
// 是否跳过加密
readonly SKIP_ENCODE: number;
// 是否返利
readonly NEED_REBATE: number;
}
export const dicServerConst: DicServerConst = {} as DicServerConst;

View File

@@ -165,4 +165,8 @@ export function canPay() {
export function isSkipEncode(isDevelop = false) {
return gameData.serverConst.SKIP_ENCODE === 1 && isDevelop;
}
export function needRebate() {
return gameData.serverConst.NEED_REBATE == 1;
}