Browse Source

update

master
shenjiachi 1 week ago
parent
commit
799c052779
2 changed files with 3 additions and 2 deletions
  1. +1
    -2
      app/hdl/hdl_wallet.go
  2. +2
    -0
      app/svc/svc_withdraw_apply.go

+ 1
- 2
app/hdl/hdl_wallet.go View File

@@ -362,8 +362,7 @@ func GetWithdrawCondition(c *gin.Context) {


//1. 判断是否为第一次提现 //1. 判断是否为第一次提现
isFirst := false isFirst := false
has, err := db.Db.Where("uid = ?", user.Id).
Get(model.FinWithdrawApply{})
has, err := db.Db.Where("uid = ?", user.Id).Get(model.FinWithdrawApply{})
if !has { //第一次提现 if !has { //第一次提现
isFirst = true isFirst = true
} }


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

@@ -250,6 +250,8 @@ func GetWithdrawCondition(user *model.User, setting *model.FinWithdrawSetting, i
utils.Unserialize([]byte(setting.FirstWithdrawSet), &firstWithdrawSet) utils.Unserialize([]byte(setting.FirstWithdrawSet), &firstWithdrawSet)
if firstWithdrawSet.IsNeedRealName == 0 { if firstWithdrawSet.IsNeedRealName == 0 {
resp.IsNeedRealName = false resp.IsNeedRealName = false
resp.IsCanWithdraw = true
resp.NotWithdrawReason = ""
} }
} }




Loading…
Cancel
Save