人工退出

pull/7/head
mofangmin 1 year ago
parent 0f0133d8e3
commit f708a81372
  1. 10
      modules/web/handler/withdraw.go

@ -350,15 +350,15 @@ func PlayerWithdraw(c *gin.Context) {
con := call.GetVipCon(uid)
realAmount := need // 实际打款
if con != nil && con.Fee > 0 {
realAmount = common.RoundCurrency(req.CurrencyType, (1000-int64(con.Fee))*realAmount/1000)
realAmount = common.RoundCurrency(req.CurrencyType, (1000-int64(con.Fee))*realAmount/1000) - 6 // 固定税费
}
var shouldAuto = false
// 在总赠送比配置比例小时才判断个人
if call.GetTotalRechargePer(realAmount) < config.GetConfig().Web.TotalWithdrawPer {
// 直接发起退出
shouldAuto = call.CanAutoWithdraw(uid, re.TotalRecharge, re.TotalWithdraw+re.TotalWithdrawing+realAmount)
}
// if call.GetTotalRechargePer(realAmount) < config.GetConfig().Web.TotalWithdrawPer {
// // 直接发起退出
// shouldAuto = call.CanAutoWithdraw(uid, re.TotalRecharge, re.TotalWithdraw+re.TotalWithdrawing+realAmount)
// }
// 第二步,创建订单
withdrawChannel := -1
if req.ChannelID != nil {

Loading…
Cancel
Save