正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -79,7 +79,7 @@ class CategoryLogic extends BaseLogic | @@ -79,7 +79,7 @@ class CategoryLogic extends BaseLogic | ||
| 79 | * @time :2023/10/18 15:10 | 79 | * @time :2023/10/18 15:10 |
| 80 | */ | 80 | */ |
| 81 | public function getAllSub($id,&$str = []){ | 81 | public function getAllSub($id,&$str = []){ |
| 82 | - $list = $this->model->list(['pid'=>$id,'status'=>0],['id','pid']); | 82 | + $list = $this->model->list(['pid'=>$id,'status'=>1],['id','pid']); |
| 83 | if(!empty($list)){ | 83 | if(!empty($list)){ |
| 84 | foreach ($list as $v){ | 84 | foreach ($list as $v){ |
| 85 | $str[] = $v['id']; | 85 | $str[] = $v['id']; |
-
请 注册 或 登录 后发表评论