同步错误返回优化
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user