diff --git a/server/product/internal/logic/gettagproductlistlogic.go b/server/product/internal/logic/gettagproductlistlogic.go index b084003a..7e8a042d 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 { //包含主路径,则属于该类型