From 3a9de995b2f4ec56bec7877abf9985676fb643fe Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 11 Oct 2023 10:49:00 +0800 Subject: [PATCH] fix --- server/product/internal/logic/gettagproductlistlogic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/product/internal/logic/gettagproductlistlogic.go b/server/product/internal/logic/gettagproductlistlogic.go index afb6c5aa..947e3cf7 100644 --- a/server/product/internal/logic/gettagproductlistlogic.go +++ b/server/product/internal/logic/gettagproductlistlogic.go @@ -335,7 +335,7 @@ func (l *GetTagProductListLogic) organizationLevelRelation(minLevel int, mapTagL continue } parent.ChildTagList = append(parent.ChildTagList, tagItem) - //排序 + //排序子菜单 sort.SliceStable(parent.ChildTagList, func(i, j int) bool { return parent.ChildTagList[i].Sort < parent.ChildTagList[j].Sort }) @@ -363,7 +363,7 @@ func (l *GetTagProductListLogic) organizationLevelRelation(minLevel int, mapTagL productCount += len(mapTagLevel[prefix].TagProductList) rspList = append(rspList, *mapTagLevel[prefix]) } - //排序 + //排序主菜单 sort.SliceStable(rspList, func(i, j int) bool { return rspList[i].Sort < rspList[j].Sort })