From 501c4643f462bdd2eae62e957fda9aeead6289b4 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 11 Oct 2023 11:22:34 +0800 Subject: [PATCH] fix --- server/product/internal/logic/gettagproductlistlogic.go | 1 + 1 file changed, 1 insertion(+) 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 {