正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
| @@ -37,7 +37,9 @@ class BaseLogic extends Logic | @@ -37,7 +37,9 @@ class BaseLogic extends Logic | ||
| 37 | $this->request = request(); | 37 | $this->request = request(); |
| 38 | $this->requestAll = request()->all(); | 38 | $this->requestAll = request()->all(); |
| 39 | $this->user = Cache::get(request()->header('token')); | 39 | $this->user = Cache::get(request()->header('token')); |
| 40 | - $this->project = Cache::get('user-'.$this->user['project_id']); | 40 | + if(!empty($this->user)){ |
| 41 | + $this->project = Cache::get('user-'.$this->user['project_id']); | ||
| 42 | + } | ||
| 41 | } | 43 | } |
| 42 | 44 | ||
| 43 | /** | 45 | /** |
-
请 注册 或 登录 后发表评论