|
@@ -33,6 +33,9 @@ func CheckWithdraw(c *gin.Context, amount string) (err error, realAmount, fee st |
|
|
//2、判断是否为第一次提现 |
|
|
//2、判断是否为第一次提现 |
|
|
var isCompleteFirstWithdraw bool |
|
|
var isCompleteFirstWithdraw bool |
|
|
has, err := db.Db.Where("uid =?", user.Id).Get(&model.FinWithdrawApply{}) |
|
|
has, err := db.Db.Where("uid =?", user.Id).Get(&model.FinWithdrawApply{}) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
if !has { //第一次提现 |
|
|
if !has { //第一次提现 |
|
|
isFirst = true |
|
|
isFirst = true |
|
|
var firstWithdrawSet md.FirstWithdrawSet |
|
|
var firstWithdrawSet md.FirstWithdrawSet |
|
|