|
|
@@ -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 |
|
|
|
} |
|
|
|
} |
|
|
|