aa
This commit is contained in:
@@ -5677,6 +5677,9 @@ func CopyMtToJd(ctx *jxcontext.Context, mtStoreID, mtOrgCode, jdStoreID, jdOrgCo
|
|||||||
catList, _ := mtapi.RetailCatList(mtStoreID)
|
catList, _ := mtapi.RetailCatList(mtStoreID)
|
||||||
for i := len(catList) - 1; i > -1; i-- {
|
for i := len(catList) - 1; i > -1; i-- {
|
||||||
catID, _ := jd.AddShopCategory(0, catList[i].Name, catList[i].Level, catList[i].Sequence, "")
|
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)
|
LoopCatChild(catList[i].Code, catID, catList[i].Children)
|
||||||
//美团好像只能建两级分类?
|
//美团好像只能建两级分类?
|
||||||
//for j := len(catList[i].Children) - 1; j > -1; j-- {
|
//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:
|
case 1:
|
||||||
//建商品
|
//建商品
|
||||||
//skuList, _ := mtapi.RetailListAll(mtStoreID)
|
//skuList, _ := mtapi.RetailListAll(mtStoreID)
|
||||||
|
|||||||
Reference in New Issue
Block a user