From 353670289a17cdc1aa8f1cebd0b2ced0d890d660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 29 Jan 2021 14:42:41 +0800 Subject: [PATCH] aa --- business/jxstore/cms/sync2.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/sync2.go b/business/jxstore/cms/sync2.go index 34c1f4e1d..f5a291a12 100644 --- a/business/jxstore/cms/sync2.go +++ b/business/jxstore/cms/sync2.go @@ -274,7 +274,9 @@ func SyncReorderCategories2(ctx *jxcontext.Context, parentCatID, vendorID int, v } } thingMaps, _ := dao.GetThingMapList(db, model.ThingTypeCategory, []int{vendorID}, []int{parentCatID}, []string{vendorOrgCode}) - parentVendorCatID = thingMaps[0].VendorThingID + if len(thingMaps) > 0 { + parentVendorCatID = thingMaps[0].VendorThingID + } if len(vendorCatIDList) > 0 { err = multiStoresHandler.ReorderCategories2(ctx, vendorOrgCode, parentVendorCatID, vendorCatIDList)