From ac9c5df2b944d19be2208d4af7cb0d584ce1168d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 8 Sep 2020 14:52:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Jwt/Jwt.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/System/Jwt/Jwt.php b/System/Jwt/Jwt.php index 884d1856..e6c359c4 100644 --- a/System/Jwt/Jwt.php +++ b/System/Jwt/Jwt.php @@ -382,12 +382,15 @@ mlAZUEjsoaT9vjvjGTxl3uCm0TX5KTgtSJIt2kA1tYVjQef+/iZTHxY= $this->data = request()->headers->getHeaders(); $model = $this->getUserModel(); if (empty($model)) { + return '授权信息已过期!'; throw new AuthException('授权信息已过期!'); } if (!isset($model['user'])) { + return '授权信息错误!'; throw new AuthException('授权信息错误!'); } if (!$this->check($this->data, $model['user'])) { + return '授权信息不合法!'; throw new AuthException('授权信息不合法!'); } $this->expireRefresh();