|
...
|
...
|
@@ -860,6 +860,7 @@ class ProductLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function getSearchCategoryList()
|
|
|
|
{
|
|
|
|
$data = [];
|
|
|
|
$categoryModel = new Category();
|
|
|
|
$this->param['deleted_at'] = null;
|
|
|
|
$this->param['featured_status'] = $this->param['featured_status'] ?? 0;
|
|
...
|
...
|
@@ -869,7 +870,6 @@ class ProductLogic extends BaseLogic |
|
|
|
unset($this->param['featured_status']);
|
|
|
|
$list = $categoryModel->list($this->param, ['sort', 'id'], ['id', 'pid', 'title']);
|
|
|
|
if (!empty($list)) {
|
|
|
|
$data = [];
|
|
|
|
foreach ($list as $v) {
|
|
|
|
$v = (array)$v;
|
|
|
|
if ($v['pid'] == 0) {
|
...
|
...
|
|