From cd5990ca62ee4415c995e5ed743f22f098b758d1 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Fri, 27 Oct 2023 17:37:04 +0800 Subject: [PATCH] fix --- server/product/internal/logic/gettagproductlistlogic.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server/product/internal/logic/gettagproductlistlogic.go b/server/product/internal/logic/gettagproductlistlogic.go index cffccbbf..dd60beeb 100644 --- a/server/product/internal/logic/gettagproductlistlogic.go +++ b/server/product/internal/logic/gettagproductlistlogic.go @@ -370,20 +370,14 @@ func (l *GetTagProductListLogic) organizationLevelRelation(minLevel int, mapTagL } } //最终值提取最高级别那一层出来 - //rspList := make([]types.TagItem, 0, len(mapTagLevel)) for prefix, _ := range mapTop { //大类下没有任何产品则不显示 if len(mapTagLevel[prefix].TagProductList) == 0 { continue } productCount += len(mapTagLevel[prefix].TagProductList) - //rspList = append(rspList, *mapTagLevel[prefix]) mapTagRsp[mapTagLevel[prefix].TypeId] = *mapTagLevel[prefix] } - //排序 - /*sort.SliceStable(rspList, func(i, j int) bool { - return rspList[i].Sort < rspList[j].Sort - })*/ return mapTagRsp, productCount }