正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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){ |
-
请 注册 或 登录 后发表评论