This commit is contained in:
suyl
2021-05-26 10:28:59 +08:00
parent 469209fe82
commit 21990fa123

View File

@@ -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)