|
|
@ -21,7 +21,7 @@ class SearchService implements \App\Service\v3\Interfaces\SearchServiceInterface |
|
|
->where('inventory', '>', 0); |
|
|
->where('inventory', '>', 0); |
|
|
|
|
|
|
|
|
if (isset($params['type_id']) && $params['type_id']) { |
|
|
if (isset($params['type_id']) && $params['type_id']) { |
|
|
$builder->where(['goods_type_id' => $params['type_id']]); |
|
|
|
|
|
|
|
|
$builder->where(['category_id' => $params['type_id']]); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (isset($params['keyword']) && $params['keyword']) { |
|
|
if (isset($params['keyword']) && $params['keyword']) { |
|
|
@ -73,7 +73,7 @@ class SearchService implements \App\Service\v3\Interfaces\SearchServiceInterface |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (isset($params['type_id']) && $params['type_id']) { |
|
|
if (isset($params['type_id']) && $params['type_id']) { |
|
|
$builder->where(['store_type_id' => $params['type_id']]); |
|
|
|
|
|
|
|
|
$builder->where(['category_id' => $params['type_id']]); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (isset($params['keyword']) && $params['keyword']) { |
|
|
if (isset($params['keyword']) && $params['keyword']) { |
|
|
|