From 1f080493beb628042fce5878ffc21d2b2cfe8ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 29 Oct 2020 15:01:36 +0800 Subject: [PATCH] wxrz --- business/jxstore/cms/job.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index cca459d99..195607ea1 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -82,6 +82,13 @@ func PublishJob(ctx *jxcontext.Context, jobExt *model.JobExt) (errCode string, e if ctx.GetUserID() != job.UserID { return errCode, fmt.Errorf("用户信息已过期,请重新登录!") } + authBinds, err := dao.GetUserBindAuthInfo(dao.GetDB(), job.UserID, model.AuthBindTypeAuth, []string{"weixinapp"}, "", "", "wx70d0943e61e0d15c") + if err != nil { + return errCode, err + } + if len(authBinds) == 0 { + return errCode, fmt.Errorf("请绑定微信认证方式!") + } //发布任务要扣除任务总额的保证金,不够扣就要进行充值 userBill, err := dao.GetUserBill(db, job.UserID, "") if userBill == nil {