正在显示
1 个修改的文件
包含
1 行增加
和
4 行删除
| @@ -32,11 +32,8 @@ class BlogCategoryLogic extends BaseLogic | @@ -32,11 +32,8 @@ class BlogCategoryLogic extends BaseLogic | ||
| 32 | $str = []; | 32 | $str = []; |
| 33 | //排序掉当前id下所有子集 | 33 | //排序掉当前id下所有子集 |
| 34 | $str = $this->getAllSub($this->param['id'],$str); | 34 | $str = $this->getAllSub($this->param['id'],$str); |
| 35 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($str, true) . PHP_EOL, FILE_APPEND); | ||
| 36 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($this->param['id'], true) . PHP_EOL, FILE_APPEND); | ||
| 37 | $str[] = (int)$this->param['id']; | 35 | $str[] = (int)$this->param['id']; |
| 38 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($str, true) . PHP_EOL, FILE_APPEND); | ||
| 39 | - $this->param['id'] = ['!=',$str]; | 36 | + $this->param['id'] = ['not in',$str]; |
| 40 | } | 37 | } |
| 41 | $list = $this->model->list($this->param); | 38 | $list = $this->model->list($this->param); |
| 42 | if(!empty($list)){ | 39 | if(!empty($list)){ |
-
请 注册 或 登录 后发表评论