cqpCow 1 year ago
parent
commit
fcaad0b435
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Service/ProductService.php

+ 1 - 1
app/Service/ProductService.php

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