This commit is contained in:
suyl
2021-04-28 15:26:03 +08:00
parent dfb91baa09
commit 06b9d035b1

View File

@@ -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