同步错误返回优化

This commit is contained in:
苏尹岚
2020-01-21 18:30:17 +08:00
parent 85a2e42ea6
commit 313e0616fe
2 changed files with 3 additions and 3 deletions

View File

@@ -650,11 +650,11 @@ func buildSetFinishHook(task tasksch.ITask, ctx *jxcontext.Context) {
if ctx.GetUserName() != "jxadmin" {
if len(task.GetFailedList()) > 10 {
downloadURL, _, _ := WirteToExcelBySyncFailed(task)
noticeMsg = "您此次的同步任务错误详情返回如下: "
noticeMsg = "您此次的同步任务错误详情返回如下: \n"
noticeMsg += fmt.Sprintf("[详情点我]%s/billshow/?normal=true&path=%s \n", globals.BackstageHost, downloadURL)
} else if len(task.GetFailedList()) > 0 && len(task.GetFailedList()) <= 10 {
if task.GetErr() != nil {
noticeMsg = "您此次的同步任务错误详情返回如下: "
noticeMsg = "您此次的同步任务错误详情返回如下: \n"
noticeMsg += utils.Format4Output(buildErrMsgJson(task), true)
}
}