|
|
|
|
@ -242,7 +242,7 @@ func GetConfigRWPerByRecharge(recharge int64, t int) int64 { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// CanAutoWithdraw 是否可自动退出
|
|
|
|
|
func CanAutoWithdraw(uid int, recharge, withdraw int64) bool { |
|
|
|
|
func CanAutoWithdraw(uid int, recharge, withdraw, withdrawNow int64) bool { |
|
|
|
|
if !config.GetBase().Release { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
@ -251,11 +251,11 @@ func CanAutoWithdraw(uid int, recharge, withdraw int64) bool { |
|
|
|
|
t = common.RWPerTypeFirst |
|
|
|
|
} |
|
|
|
|
per := GetConfigRWPerByRecharge(recharge, t) |
|
|
|
|
log.Debug("uid:%d,per:%d,recharge:%d,withdraw:%d", uid, per, recharge, withdraw) |
|
|
|
|
log.Debug("uid:%d,per:%d,recharge:%d,withdraw:%d,withdrawNow:%d", uid, per, recharge, withdraw, withdrawNow) |
|
|
|
|
if per == 0 { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
return recharge*per >= withdraw*100 |
|
|
|
|
return recharge*per >= (withdraw+withdrawNow)*100 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// LoadConfigActivity 加载活动总配置表
|
|
|
|
|
|