diff --git a/plugs/think-plugs-inspection/src/controller/api/auth/Staff.php b/plugs/think-plugs-inspection/src/controller/api/auth/Staff.php index bbe7c10..5a18d73 100644 --- a/plugs/think-plugs-inspection/src/controller/api/auth/Staff.php +++ b/plugs/think-plugs-inspection/src/controller/api/auth/Staff.php @@ -7,6 +7,9 @@ use plugin\inspection\controller\api\Auth; class Staff extends Auth { public function check() { + if (!$this->tokenInfo) { + $this->error('请重新登录', [], 401); + } $this->success('登录成功', [ 'token' => $this->tokenInfo->token, 'user' => $this->staff