From 313e0616fee0bf261e05d4fc122255567993aa8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 21 Jan 2020 18:30:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=94=99=E8=AF=AF=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sync.go | 4 ++-- business/jxstore/cms/sync_store_sku.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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, ","))