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