Browse Source

update

master
dengbiao 5 days ago
parent
commit
1e3a9ec256
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/svc/svc_withdraw_apply.go

+ 2
- 2
app/svc/svc_withdraw_apply.go View File

@@ -50,7 +50,7 @@ func CheckWithdraw(c *gin.Context, amount string) (err error, realAmount, fee st
//3、判断“提现金额”
if isCompleteFirstWithdraw && utils.StrToFloat64(withdrawSetting.WithdrawAmountLimit) > 0 {
withdrawAmountLimitValue, _ := decimal.NewFromString(withdrawSetting.WithdrawAmountLimit)
if amountValue.GreaterThan(withdrawAmountLimitValue) {
if amountValue.LessThan(withdrawAmountLimitValue) {
return errors.New("非可提现金额"), realAmount, fee, isAuto, isFirst
}
}
@@ -160,7 +160,7 @@ func CheckWithdraw(c *gin.Context, amount string) (err error, realAmount, fee st
//10、判断是否为自动提现
if withdrawSetting.IsAuto > 0 {
autoAmountLimit, _ := decimal.NewFromString(withdrawSetting.IsAutoAmountLimit)
if amountValue.GreaterThanOrEqual(autoAmountLimit) {
if amountValue.LessThanOrEqual(autoAmountLimit) {
isAuto = true
}
}


Loading…
Cancel
Save