作者 lyh

gx

@@ -125,7 +125,7 @@ class BlogCategoryLogic extends BaseLogic @@ -125,7 +125,7 @@ class BlogCategoryLogic extends BaseLogic
125 if($otherInfo === false){ 125 if($otherInfo === false){
126 //无其他下级时,查看当前上级分类下是否有博客 126 //无其他下级时,查看当前上级分类下是否有博客
127 $associationCateModel = new AssociationCate(); 127 $associationCateModel = new AssociationCate();
128 - $id_arr = $associationCateModel->where(['type'=>$associationCateModel::BLOG_CATE,'category_id'=>$this->param['id']])->pluck('type_id')->toArray(); 128 + $id_arr = $associationCateModel->where(['type'=>$associationCateModel::BLOG_CATE,'category_id'=>$id])->pluck('type_id')->toArray();
129 if(!empty($id_arr)){ 129 if(!empty($id_arr)){
130 $data = []; 130 $data = [];
131 foreach ($id_arr as $v){ 131 foreach ($id_arr as $v){