Merge branch 'master-server' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -860,6 +860,7 @@ class ProductLogic extends BaseLogic | @@ -860,6 +860,7 @@ class ProductLogic extends BaseLogic | ||
| 860 | */ | 860 | */ |
| 861 | public function getSearchCategoryList() | 861 | public function getSearchCategoryList() |
| 862 | { | 862 | { |
| 863 | + $data = []; | ||
| 863 | $categoryModel = new Category(); | 864 | $categoryModel = new Category(); |
| 864 | $this->param['deleted_at'] = null; | 865 | $this->param['deleted_at'] = null; |
| 865 | $this->param['featured_status'] = $this->param['featured_status'] ?? 0; | 866 | $this->param['featured_status'] = $this->param['featured_status'] ?? 0; |
| @@ -869,7 +870,6 @@ class ProductLogic extends BaseLogic | @@ -869,7 +870,6 @@ class ProductLogic extends BaseLogic | ||
| 869 | unset($this->param['featured_status']); | 870 | unset($this->param['featured_status']); |
| 870 | $list = $categoryModel->list($this->param, ['sort', 'id'], ['id', 'pid', 'title']); | 871 | $list = $categoryModel->list($this->param, ['sort', 'id'], ['id', 'pid', 'title']); |
| 871 | if (!empty($list)) { | 872 | if (!empty($list)) { |
| 872 | - $data = []; | ||
| 873 | foreach ($list as $v) { | 873 | foreach ($list as $v) { |
| 874 | $v = (array)$v; | 874 | $v = (array)$v; |
| 875 | if ($v['pid'] == 0) { | 875 | if ($v['pid'] == 0) { |
-
请 注册 或 登录 后发表评论