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