diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index c59461daa..eb95281f6 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -813,8 +813,12 @@ func AuditJob(ctx *jxcontext.Context, jobOrderID, status int, comment, vendorWay return err } } + event.SendSysMessageSimple(content.String(), jobOrder.UserID) } else { - content.WriteString("不通过,请您修改后重新提交!") + content2 := new(strings.Builder) + content2.WriteString("非常抱歉,您提交的任务: ") + content2.WriteString(job.Title) + content2.WriteString("未通过审核,请您修改后重新提交!") if job.Status < 0 { if job.CashbackType == model.JobCashbackPrice { userBill, err := dao.GetUserBill(db, job.UserID, "") @@ -830,6 +834,7 @@ func AuditJob(ctx *jxcontext.Context, jobOrderID, status int, comment, vendorWay return } } + event.SendSysMessageSimple(content2.String(), jobOrder.UserID) } dao.Commit(db) //任务定时器停止 @@ -853,7 +858,6 @@ func AuditJob(ctx *jxcontext.Context, jobOrderID, status int, comment, vendorWay jobTimer.Status = model.JobTimerStatusFinish dao.UpdateEntity(db, jobTimer, "Status") } - event.SendSysMessageSimple(content.String(), jobOrder.UserID) return err }