diff --git a/server/product/internal/logic/gettagproductlistlogic.go b/server/product/internal/logic/gettagproductlistlogic.go index 7e8a042d..07ad23ab 100644 --- a/server/product/internal/logic/gettagproductlistlogic.go +++ b/server/product/internal/logic/gettagproductlistlogic.go @@ -346,6 +346,7 @@ func (l *GetTagProductListLogic) organizationLevelRelation(minLevel int, mapTagL if _, ok := mapTop[v.LevelPrefix]; ok { continue } + //顶部需要初始化 v.TagProductList = make([]interface{}, 0, 50) mapTypeId := make(map[int64]struct{}) for _, v2 := range mapTagLevel {