From 06b9d035b1f8ed392ed60e5eb8844e1b399dce99 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Wed, 28 Apr 2021 15:26:03 +0800 Subject: [PATCH] aa --- business/jxstore/cms/job.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index 38834eb1b..ff1cc04a9 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -1975,6 +1975,9 @@ func ShareUnionLink(ctx *jxcontext.Context, jobID, shareType, linkType, resource mobile, userID = ctx.GetMobileAndUserID() userBinds []*model.UserUnionBind ) + if jobID == 0 { + return "", fmt.Errorf("该活动已结束,请选择其他其他活动!") + } job.ID = jobID if err = dao.GetEntity(db, job); err != nil { return "", err