正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -29,8 +29,9 @@ class BlogCategoryLogic extends BaseLogic | @@ -29,8 +29,9 @@ class BlogCategoryLogic extends BaseLogic | ||
| 29 | $this->param['project_id'] = $this->user['project_id']; | 29 | $this->param['project_id'] = $this->user['project_id']; |
| 30 | $this->param['status'] = 0; | 30 | $this->param['status'] = 0; |
| 31 | if(isset($this->param['id']) && !empty($this->param['id'])){ | 31 | if(isset($this->param['id']) && !empty($this->param['id'])){ |
| 32 | + $str = []; | ||
| 32 | //排序掉当前id下所有子集 | 33 | //排序掉当前id下所有子集 |
| 33 | - $str = $this->getAllSub($this->param['id'],$str); | 34 | + $this->getAllSub($this->param['id'],$str); |
| 34 | @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); |
| 35 | $this->param['id'] = ['!=',$str]; | 36 | $this->param['id'] = ['!=',$str]; |
| 36 | } | 37 | } |
| @@ -58,7 +59,6 @@ class BlogCategoryLogic extends BaseLogic | @@ -58,7 +59,6 @@ class BlogCategoryLogic extends BaseLogic | ||
| 58 | $str[] = $v['id']; | 59 | $str[] = $v['id']; |
| 59 | $this->getAllSub($v['id'],$str); | 60 | $this->getAllSub($v['id'],$str); |
| 60 | } | 61 | } |
| 61 | - $str[] = $id; | ||
| 62 | } | 62 | } |
| 63 | return $this->success($str); | 63 | return $this->success($str); |
| 64 | } | 64 | } |
-
请 注册 或 登录 后发表评论