作者 lyh

gx

... ... @@ -29,8 +29,9 @@ class BlogCategoryLogic extends BaseLogic
$this->param['project_id'] = $this->user['project_id'];
$this->param['status'] = 0;
if(isset($this->param['id']) && !empty($this->param['id'])){
$str = [];
//排序掉当前id下所有子集
$str = $this->getAllSub($this->param['id'],$str);
$this->getAllSub($this->param['id'],$str);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($str, true) . PHP_EOL, FILE_APPEND);
$this->param['id'] = ['!=',$str];
}
... ... @@ -58,7 +59,6 @@ class BlogCategoryLogic extends BaseLogic
$str[] = $v['id'];
$this->getAllSub($v['id'],$str);
}
$str[] = $id;
}
return $this->success($str);
}
... ...