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