浏览代码

完善功能

Gorden 9 月之前
父节点
当前提交
4204bda630
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 . "%");
             })