This commit is contained in:
2020-09-08 15:59:15 +08:00
parent 4aee04f14b
commit 9a086a50d0
9 changed files with 123 additions and 31 deletions
+3 -3
View File
@@ -383,15 +383,15 @@ mlAZUEjsoaT9vjvjGTxl3uCm0TX5KTgtSJIt2kA1tYVjQef+/iZTHxY=
$model = $this->getUserModel();
if (empty($model)) {
return '授权信息已过期!';
throw new AuthException('授权信息已过期!');
// throw new AuthException('授权信息已过期!');
}
if (!isset($model['user'])) {
return '授权信息错误!';
throw new AuthException('授权信息错误!');
// throw new AuthException('授权信息错误!');
}
if (!$this->check($this->data, $model['user'])) {
return '授权信息不合法!';
throw new AuthException('授权信息不合法!');
// throw new AuthException('授权信息不合法!');
}
$this->expireRefresh();