From f5673437d3520bd50bc8bc904b980551e4b96b41 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Sat, 22 May 2021 18:05:29 +0800 Subject: [PATCH] aa --- business/jxstore/tempop/tempop.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 289471e74..2c9bebfe9 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1939,9 +1939,9 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { //} //mtapi.SetToken(mtAccessToken) catList, _ := mtapi.RetailCatList(mtStoreID) - for i := len(catList) - 1; i > 0; i-- { + for i := len(catList) - 1; i > -1; i-- { catID, _ := jd.AddShopCategory(0, catList[i].Name, catList[i].Level, catList[i].Sequence, "") - for j := len(catList[i].Children); j > 0; 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, "") } }