瀏覽代碼

update

master
shenjiachi 1 周之前
父節點
當前提交
799c052779
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. +1
    -2
      app/hdl/hdl_wallet.go
  2. +2
    -0
      app/svc/svc_withdraw_apply.go

+ 1
- 2
app/hdl/hdl_wallet.go 查看文件

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

//1. 判断是否为第一次提现
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 { //第一次提现
isFirst = true
}


+ 2
- 0
app/svc/svc_withdraw_apply.go 查看文件

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



Loading…
取消
儲存