作者 lyh

gx

... ... @@ -31,9 +31,11 @@ class BlogCategoryLogic extends BaseLogic
if(isset($this->param['id']) && !empty($this->param['id'])){
$str = [];
//排序掉当前id下所有子集
$this->getAllSub($this->param['id'],$str);
$str = $this->getAllSub($this->param['id'],$str);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($str, true) . PHP_EOL, FILE_APPEND);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($this->param['id'], true) . PHP_EOL, FILE_APPEND);
$str[] = (int)$this->param['id'];
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($str, true) . PHP_EOL, FILE_APPEND);
$this->param['id'] = ['!=',$str];
}
$list = $this->model->list($this->param);
... ...