This commit is contained in:
苏尹岚
2021-01-19 09:25:22 +08:00
parent 4344e06558
commit 7ef72424bb

View File

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