cqpCow 1 year ago
parent
commit
e9a6fab0d3
1 changed files with 1 additions and 2 deletions
  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();