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