From 8154d131f747add9406ebf4f9aa439e1280788bf Mon Sep 17 00:00:00 2001 From: gazebo Date: Sun, 27 Oct 2019 23:00:51 +0800 Subject: [PATCH] =?UTF-8?q?checkRemoteCatExist=E4=B8=AD=EF=BC=8C=E5=8F=AA?= =?UTF-8?q?=E6=A0=B9=E6=8D=AEcode=E6=9D=A5=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sync_store_sku.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index ee3711d46..24b9a9670 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -576,9 +576,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, isFull bo func checkRemoteCatExist(outRemoteCatMap map[string]int, localCatMap map[string]*dao.SkuStoreCatInfo, remoteCatList []*partner.BareCategoryInfo) (cat2Delete []*partner.BareCategoryInfo) { for _, v := range remoteCatList { localCat := localCatMap[v.VendorCatID] - if localCat == nil { - localCat = localCatMap[v.Name] - } + // if localCat == nil { + // localCat = localCatMap[v.Name] + // } if localCat == nil || v.Level != int(localCat.Level) { cat2Delete = append(cat2Delete, v) } else {