Gorden 9 mesi fa
parent
commit
4204bda630
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/admin/service/goods/GoodsService.php

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

@@ -287,10 +287,10 @@ class GoodsService
 //            return json_success('暂无数据');
 //        }
 
-        $categoryIds = SysCategory::whereIn('category_super_id', [5, 31, 32, 42, 66, 70, 72])->pluck('category_id');
+//        $categoryIds = SysCategory::whereIn('category_super_id', [5, 31, 32, 42, 66, 70, 72])->pluck('category_id');
 
         $goods = Goods::with('sku')
-            ->whereIn('join_goods_category_id', $categoryIds)
+//            ->whereIn('join_goods_category_id', $categoryIds)
             ->when($keywords != '', function ($query) use ($keywords) {
                 $query->where('goods_name', 'like', "%" . $keywords . "%");
             })