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