From 21990fa1232215f6998bdda17d0f1fc2779c7a83 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Wed, 26 May 2021 10:28:59 +0800 Subject: [PATCH] aa --- business/jxstore/cms/store_sku.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 4a8573b94..97da1c2ee 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -5677,6 +5677,9 @@ func CopyMtToJd(ctx *jxcontext.Context, mtStoreID, mtOrgCode, jdStoreID, jdOrgCo catList, _ := mtapi.RetailCatList(mtStoreID) for i := len(catList) - 1; i > -1; i-- { catID, _ := jd.AddShopCategory(0, catList[i].Name, catList[i].Level, catList[i].Sequence, "") + if catID != "" { + catMap[catList[i].Code] = catID + } LoopCatChild(catList[i].Code, catID, catList[i].Children) //美团好像只能建两级分类? //for j := len(catList[i].Children) - 1; j > -1; j-- { @@ -5684,6 +5687,7 @@ func CopyMtToJd(ctx *jxcontext.Context, mtStoreID, mtOrgCode, jdStoreID, jdOrgCo //} } } + fmt.Println("map ", catMap) case 1: //建商品 //skuList, _ := mtapi.RetailListAll(mtStoreID)