From 0219e2f76488417f4340fccdfc7bc616669b30d5 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Fri, 14 Mar 2025 10:08:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=9C=9F=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugs/think-plugs-inspection/src/controller/api/auth/Staff.php | 3 +++ 1 file changed, 3 insertions(+) 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