gorden 11 mesi fa
parent
commit
355d3050d4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/admin/service/goods/GoodsService.php

+ 1 - 1
app/admin/service/goods/GoodsService.php

@@ -118,7 +118,7 @@ class GoodsService
             });
         })->when($categoryId != null, function ($query) use ($categoryId) {
             $query->where('join_goods_category_id', $categoryId);
-        })->where('goods_classify', $classify)->count();
+        })->whereIn('join_goods_category_id', [65,43])->count();
 
         foreach ($rows as &$row) {
             $row['goods_cover'] = getenv('STORAGE_DOMAIN') . $row['goods_cover'];