正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -84,7 +84,7 @@ class BlogController extends BaseController | @@ -84,7 +84,7 @@ class BlogController extends BaseController | ||
| 84 | */ | 84 | */ |
| 85 | public function getAllSub($id,&$str = []){ | 85 | public function getAllSub($id,&$str = []){ |
| 86 | $cateModel = new BlogCategory(); | 86 | $cateModel = new BlogCategory(); |
| 87 | - $list = $cateModel->list(['pid'=>$id,'status'=>1],['id','pid']); | 87 | + $list = $cateModel->list(['pid'=>$id,'status'=>0],['id','pid']); |
| 88 | if(!empty($list)){ | 88 | if(!empty($list)){ |
| 89 | foreach ($list as $v){ | 89 | foreach ($list as $v){ |
| 90 | $str[] = $v['id']; | 90 | $str[] = $v['id']; |
| @@ -88,7 +88,7 @@ class NewsController extends BaseController | @@ -88,7 +88,7 @@ class NewsController extends BaseController | ||
| 88 | */ | 88 | */ |
| 89 | public function getAllSub($id,&$str = []){ | 89 | public function getAllSub($id,&$str = []){ |
| 90 | $cateModel = new NewsCategory(); | 90 | $cateModel = new NewsCategory(); |
| 91 | - $list = $cateModel->list(['pid'=>$id,'status'=>1],['id','pid']); | 91 | + $list = $cateModel->list(['pid'=>$id,'status'=>0],['id','pid']); |
| 92 | if(!empty($list)){ | 92 | if(!empty($list)){ |
| 93 | foreach ($list as $v){ | 93 | foreach ($list as $v){ |
| 94 | $str[] = $v['id']; | 94 | $str[] = $v['id']; |
-
请 注册 或 登录 后发表评论