cqpCow 1 년 전
부모
커밋
e9a6fab0d3
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      app/Service/ProductService.php

+ 1 - 2
app/Service/ProductService.php

@@ -515,8 +515,7 @@ class ProductService extends Service
         if(isset($data['state'])) $model->where('state', $data['state']);
         if(! empty($data['product_category_id'])) $model->where('product_category_id', $data['product_category_id']);
         if(! empty($data['product_category'])) {
-            $model2 = ProductCategory::TopClear($user,$data);
-            $product_category = $model2->where('del_time',0)
+            $product_category = ProductCategory::where('del_time',0)
                 ->where('title', 'LIKE', '%'.$data['product_category'].'%')
                 ->select('id')
                 ->get()->toArray();