正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -37,8 +37,10 @@ class BaseLogic extends Logic | @@ -37,8 +37,10 @@ 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 | + if(!empty($this->user)){ | ||
| 40 | $this->project = Cache::get('user-'.$this->user['project_id']); | 41 | $this->project = Cache::get('user-'.$this->user['project_id']); |
| 41 | } | 42 | } |
| 43 | + } | ||
| 42 | 44 | ||
| 43 | /** | 45 | /** |
| 44 | * 列表 | 46 | * 列表 |
-
请 注册 或 登录 后发表评论