aa
This commit is contained in:
@@ -1939,10 +1939,10 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
//}
|
//}
|
||||||
//mtapi.SetToken(mtAccessToken)
|
//mtapi.SetToken(mtAccessToken)
|
||||||
catList, _ := mtapi.RetailCatList(mtStoreID)
|
catList, _ := mtapi.RetailCatList(mtStoreID)
|
||||||
for _, v := range catList {
|
for i := len(catList) - 1; i > 0; i-- {
|
||||||
catID, _ := jd.AddShopCategory(0, v.Name, v.Level, v.Sequence, "")
|
catID, _ := jd.AddShopCategory(0, catList[i].Name, catList[i].Level, catList[i].Sequence, "")
|
||||||
for _, vv := range v.Children {
|
for j := len(catList[i].Children); j > 0; j-- {
|
||||||
jd.AddShopCategory(utils.Str2Int64(catID), vv.Name, vv.Level, vv.Sequence, "")
|
jd.AddShopCategory(utils.Str2Int64(catID), catList[i].Children[j].Name, catList[i].Children[j].Level, catList[i].Children[j].Sequence, "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user