From feb739bcf6bcbd0b6578e22e00936dac9cf0c8d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 31 Jan 2023 15:50:32 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=89=93=E6=A1=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sync2.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/business/jxstore/cms/sync2.go b/business/jxstore/cms/sync2.go index 800ca15cf..331a34ee7 100644 --- a/business/jxstore/cms/sync2.go +++ b/business/jxstore/cms/sync2.go @@ -38,6 +38,8 @@ func getMultiStoreVendorInfoList() (list []*MultiStoreVendorInfo) { }) } } + globals.SugarLogger.Debugf("======vendorIDs======= %s", utils.Format4Output(vendorIDs, false)) + globals.SugarLogger.Debugf("======list======= %s", utils.Format4Output(list, false)) return list } From d9e5b707cf1c4bc1626fe2a1b14bd8692dc166af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 31 Jan 2023 16:26:18 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=89=93=E6=A1=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sync2.go | 3 +++ business/partner/purchase/jd/sku2.go | 1 + 2 files changed, 4 insertions(+) diff --git a/business/jxstore/cms/sync2.go b/business/jxstore/cms/sync2.go index 331a34ee7..b62353c46 100644 --- a/business/jxstore/cms/sync2.go +++ b/business/jxstore/cms/sync2.go @@ -261,6 +261,9 @@ func SyncReorderCategories(ctx *jxcontext.Context, parentCatID int, isAsync bool parentVendorCatID = thingMaps[0].VendorThingID } if len(vendorCatIDList) > 0 { + globals.SugarLogger.Debugf("vendorInfo.OrgCode=== %s", vendorInfo.OrgCode) + globals.SugarLogger.Debugf("vendorInfo.parentVendorCatID=== %s", parentVendorCatID) + globals.SugarLogger.Debugf("vendorInfo.vendorCatIDList=== %s", vendorCatIDList) if err = multiStoresHandler.ReorderCategories2(ctx, vendorInfo.OrgCode, parentVendorCatID, vendorCatIDList); err == nil { retVal = []int{len(vendorCatIDList)} } diff --git a/business/partner/purchase/jd/sku2.go b/business/partner/purchase/jd/sku2.go index b505c1cd8..2fb31da39 100644 --- a/business/partner/purchase/jd/sku2.go +++ b/business/partner/purchase/jd/sku2.go @@ -108,6 +108,7 @@ func (p *PurchaseHandler) DeleteCategory2(ctx *jxcontext.Context, vendorOrgCode, func (p *PurchaseHandler) ReorderCategories2(ctx *jxcontext.Context, vendorOrgCode, vendorParentCatID string, vendorCatIDList []string) (err error) { if globals.EnableJdStoreWrite { err = getAPI(vendorOrgCode).ChangeShopCategoryOrder(utils.Str2Int64WithDefault(vendorParentCatID, 0), utils.StringSlice2Int64(vendorCatIDList)) + globals.SugarLogger.Debugf("ReorderCategories2 === %v", err) } return err } From e3807d20140f3456f28c8dd9bbb4dff7eb4c7dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 31 Jan 2023 16:37:45 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=89=93=E6=A1=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sync2.go | 3 --- business/partner/purchase/jd/sku2.go | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/cms/sync2.go b/business/jxstore/cms/sync2.go index b62353c46..331a34ee7 100644 --- a/business/jxstore/cms/sync2.go +++ b/business/jxstore/cms/sync2.go @@ -261,9 +261,6 @@ func SyncReorderCategories(ctx *jxcontext.Context, parentCatID int, isAsync bool parentVendorCatID = thingMaps[0].VendorThingID } if len(vendorCatIDList) > 0 { - globals.SugarLogger.Debugf("vendorInfo.OrgCode=== %s", vendorInfo.OrgCode) - globals.SugarLogger.Debugf("vendorInfo.parentVendorCatID=== %s", parentVendorCatID) - globals.SugarLogger.Debugf("vendorInfo.vendorCatIDList=== %s", vendorCatIDList) if err = multiStoresHandler.ReorderCategories2(ctx, vendorInfo.OrgCode, parentVendorCatID, vendorCatIDList); err == nil { retVal = []int{len(vendorCatIDList)} } diff --git a/business/partner/purchase/jd/sku2.go b/business/partner/purchase/jd/sku2.go index 2fb31da39..dbeff6519 100644 --- a/business/partner/purchase/jd/sku2.go +++ b/business/partner/purchase/jd/sku2.go @@ -108,6 +108,9 @@ func (p *PurchaseHandler) DeleteCategory2(ctx *jxcontext.Context, vendorOrgCode, func (p *PurchaseHandler) ReorderCategories2(ctx *jxcontext.Context, vendorOrgCode, vendorParentCatID string, vendorCatIDList []string) (err error) { if globals.EnableJdStoreWrite { err = getAPI(vendorOrgCode).ChangeShopCategoryOrder(utils.Str2Int64WithDefault(vendorParentCatID, 0), utils.StringSlice2Int64(vendorCatIDList)) + globals.SugarLogger.Debugf("vendorInfo.vendorOrgCode=== %s", vendorOrgCode) + globals.SugarLogger.Debugf("vendorInfo.vendorParentCatID=== %s", vendorParentCatID) + globals.SugarLogger.Debugf("vendorInfo.vendorCatIDList=== %s", vendorCatIDList) globals.SugarLogger.Debugf("ReorderCategories2 === %v", err) } return err