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)