正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -316,9 +316,9 @@ class Controller | @@ -316,9 +316,9 @@ class Controller | ||
316 | */ | 316 | */ |
317 | public function getUser() | 317 | public function getUser() |
318 | { | 318 | { |
319 | -// if (empty($this->user)) { | ||
320 | -// $this->error(['code' => 10001, 'msg' => '用户未登录']); | ||
321 | -// } | 319 | + if (empty($this->user)) { |
320 | + $this->error(['code' => 10001, 'msg' => '用户未登录']); | ||
321 | + } | ||
322 | return $this->user; | 322 | return $this->user; |
323 | //return 2; | 323 | //return 2; |
324 | } | 324 | } |
-
请 注册 或 登录 后发表评论