作者 lyh

gx

@@ -33,6 +33,7 @@ class BlogCategoryLogic extends BaseLogic @@ -33,6 +33,7 @@ class BlogCategoryLogic extends BaseLogic
33 //排序掉当前id下所有子集 33 //排序掉当前id下所有子集
34 $this->getAllSub($this->param['id'],$str); 34 $this->getAllSub($this->param['id'],$str);
35 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($str, true) . PHP_EOL, FILE_APPEND); 35 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($str, true) . PHP_EOL, FILE_APPEND);
  36 + $str[] = $this->param['id'];
36 $this->param['id'] = ['!=',$str]; 37 $this->param['id'] = ['!=',$str];
37 } 38 }
38 $list = $this->model->list($this->param); 39 $list = $this->model->list($this->param);