This commit is contained in:
laodaming 2023-10-11 12:10:08 +08:00
parent 543099c8d7
commit b86d6748b4

View File

@ -312,6 +312,7 @@ func (l *GetTagProductListLogic) dealWithTagMenuData(req dealWithTagMenuDataReq)
//tag中产品
for _, tmpProduct := range productListRsp {
tagTem.TagProductList = append(tagTem.TagProductList, tmpProduct.ProductId)
req.MapTagProduct[tmpProduct.ProductId] = tmpProduct
}
}
//加入分类
@ -354,7 +355,7 @@ func (l *GetTagProductListLogic) organizationLevelRelation(minLevel int, mapTagL
mapTypeId := make(map[int64]struct{})
for _, v2 := range mapTagLevel {
if strings.Contains(v2.LevelPrefix, v.LevelPrefix) {
mapTypeId[v.TypeId] = struct{}{}
mapTypeId[v2.TypeId] = struct{}{}
}
}
for _, p := range productList {