From fd93688d27bfca2c2d384875288ae45a5a87fda6 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Thu, 20 Jul 2023 11:09:20 +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 87baf49b..d1c034e1 100644 --- a/server/product/internal/logic/gettagproductlistlogic.go +++ b/server/product/internal/logic/gettagproductlistlogic.go @@ -116,6 +116,7 @@ func (l *GetTagProductListLogic) GetTagProductList(req *types.GetTagProductListR logx.Error(err) return resp.SetStatusWithMessage(basic.CodeDbSqlErr, "failed to get product part list") } + //存储有配件的map for _, partList := range productOptionalPartList { partList.PartList = strings.Trim(partList.PartList, " ") partList.PartList = strings.Trim(partList.PartList, ",")