This commit is contained in:
2020-09-21 14:02:29 +08:00
parent 857d4490eb
commit e1a5d74d8a
2 changed files with 7 additions and 5 deletions
+3 -3
View File
@@ -379,13 +379,13 @@ mlAZUEjsoaT9vjvjGTxl3uCm0TX5KTgtSJIt2kA1tYVjQef+/iZTHxY=
$this->data = request()->headers->getHeaders();
$model = $this->getUserModel();
if (empty($model)) {
throw new AuthException('授权信息已过期!');
return $this->addError('授权信息已过期!');
}
if (!isset($model['user'])) {
throw new AuthException('授权信息错误!');
return $this->addError('授权信息错误!');
}
if (!$this->check($this->data, $model['user'])) {
throw new AuthException('授权信息不合法!');
return $this->addError('授权信息不合法!');
}
$this->expireRefresh();