aa
This commit is contained in:
@@ -5680,11 +5680,14 @@ func CopyMtToJd(ctx *jxcontext.Context, mtStoreID, mtOrgCode, jdStoreID, jdOrgCo
|
|||||||
if catID != "" {
|
if catID != "" {
|
||||||
catMap[catList[i].Code] = 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-- {
|
||||||
// jd.AddShopCategory(utils.Str2Int64(catID), catList[i].Children[j].Name, catList[i].Children[j].Level, catList[i].Children[j].Sequence, "")
|
catID2, _ := jd.AddShopCategory(utils.Str2Int64(catID), catList[i].Children[j].Name, catList[i].Children[j].Level, catList[i].Children[j].Sequence, "")
|
||||||
//}
|
if catID2 != "" {
|
||||||
|
catMap[catList[i].Children[j].Code] = catID2
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 1:
|
case 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user