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)
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{