作者 lyh

gx

@@ -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'];