diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index c3e44b3fb..c54e8884c 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -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) } } diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index 5bab8cf3e..9848d7155 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -702,8 +702,8 @@ func buildFailedListAndErr(failedList []*partner.StoreSkuInfoWithErr, err error, } else if err == nil && len(failedList) > 0 { var errMsgList []string for _, v := range failedList { + errMsgList = append(errMsgList, utils.Int2Str(v.StoreID)) errMsgList = append(errMsgList, utils.Int2Str(v.StoreSkuInfo.SkuID)) - errMsgList = append(errMsgList, utils.Int2Str(storeID)) errMsgList = append(errMsgList, v.ErrMsg) } err2 := errors.New(strings.Join(errMsgList, ","))