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