From 19ab93ab1e9aa03fdd621051f890d4f62660c900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 8 Jan 2020 16:07:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sync.go | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index 435f5e65a..7ca22d248 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -664,21 +664,26 @@ func buildErrMsg(task tasksch.ITask) (err error) { for _, vv := range v.([]*partner.StoreSkuInfoWithErr) { if vv.StoreSkuInfo != nil { result := &SyncErrResult{ - SkuID: vv.StoreSkuInfo.SkuID, - StoreID: vv.StoreID, - VendorID: vv.VendoreID, - VendorSkuID: vv.StoreSkuInfo.VendorSkuID, - NameID: vv.StoreSkuInfo.NameID, - VendorPrice: vv.StoreSkuInfo.VendorPrice, - SyncType: vv.SyncType, - ErrMsg: vv.ErrMsg, + SkuID: vv.StoreSkuInfo.SkuID, + StoreID: vv.StoreID, + CategoryName: "", + VendorID: vv.VendoreID, + VendorSkuID: vv.StoreSkuInfo.VendorSkuID, + NameID: vv.StoreSkuInfo.NameID, + VendorPrice: vv.StoreSkuInfo.VendorPrice, + SyncType: vv.SyncType, + ErrMsg: vv.ErrMsg, } resultL = append(resultL, result) } else { result := &SyncErrResult{ + SkuID: 0, StoreID: vv.StoreID, CategoryName: vv.CategoryName, VendorID: vv.VendoreID, + VendorSkuID: "", + NameID: 0, + VendorPrice: 0, SyncType: vv.SyncType, ErrMsg: vv.ErrMsg, }