Browse Source

回退

master
huangjiajun 5 days ago
parent
commit
88752e00aa
2 changed files with 5 additions and 7 deletions
  1. +1
    -7
      app/hdl/hdl_wallet.go
  2. +4
    -0
      app/svc/svc_user_real_name.go

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

@@ -175,8 +175,7 @@ func WithdrawApply(c *gin.Context) {
}
resp := svc.GetWithdrawCondition(user, setting, isFirst)
//判断实名
IsRealName := svc.CheckRealName(user.Id)
if IsRealName != "1" && resp.IsNeedRealName {
if user.IsRealName != 1 && resp.IsNeedRealName {
e.OutErr(c, 400, e.NewErr(400, "请先前往实名认证"))
return
}
@@ -367,11 +366,6 @@ func GetWithdrawCondition(c *gin.Context) {
isFirst = true
}
resp := svc.GetWithdrawCondition(user, setting, isFirst)
//判断实名
IsRealName := svc.CheckRealName(user.Id)
if IsRealName == "1" && resp.IsNeedRealName {
resp.IsNeedRealName = false
}
alipayUserInfoDb := implement.NewAlipayUserInfoDb(db.Db)
alipayInfo, err := alipayUserInfoDb.GetAlipayUserInfo(user.Id)
if err != nil {


+ 4
- 0
app/svc/svc_user_real_name.go View File

@@ -57,6 +57,10 @@ func GetRealNameAuthBase(c *gin.Context) {
}
if res.AuthState == "1" {
res.IsNeedGetEnergy = "0"
if user.IsRealName == 0 {
user.IsRealName = 1
eg.Where("id=?", user.Id).Cols("is_real_name").Update(user)
}
}
e.OutSuc(c, res, nil)
return


Loading…
Cancel
Save