|
...
|
...
|
@@ -32,11 +32,8 @@ class BlogCategoryLogic extends BaseLogic |
|
|
|
$str = [];
|
|
|
|
//排序掉当前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);
|
|
|
|
@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];
|
|
|
|
$this->param['id'] = ['not in',$str];
|
|
|
|
}
|
|
|
|
$list = $this->model->list($this->param);
|
|
|
|
if(!empty($list)){
|
...
|
...
|
|