This commit is contained in:
laodaming 2023-06-06 19:43:22 +08:00
parent c8444d71f6
commit 548d49271f

View File

@ -145,13 +145,9 @@ func (l *GetProductListLogic) GetProductList(req *types.GetProductListReq, login
itemList := make([]types.Items, 0, productLen) itemList := make([]types.Items, 0, productLen)
for _, v := range productList { for _, v := range productList {
minPrice, ok := mapProductMinPrice[v.Id] minPrice, ok := mapProductMinPrice[v.Id]
//无最小价格则不显示 _, tmpOk := mapProductTemplate[v.Id]
if !ok { //无最小价格则不显示 || 没有模板也不显示
continue if !ok || !tmpOk {
}
_, ok = mapProductTemplate[v.Id]
//没有模板也不显示
if !ok {
continue continue
} }
item := types.Items{ item := types.Items{