Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
edenleung authored and StyleCIBot committed Mar 22, 2020
1 parent f55e45a commit e1e3579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jwt.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ protected function validateToken()
// 是否已过期
if (true === $this->token->isExpired()) {
if (time() <= $this->token->getClaim('refreshAt')) {
throw new TokenAlreadyEexpired('Token 已过期,请重新刷新' .time() . '-' . $this->token->getClaim('refreshAt'), $this->getAlreadyCode());
throw new TokenAlreadyEexpired('Token 已过期,请重新刷新'.time().'-'.$this->token->getClaim('refreshAt'), $this->getAlreadyCode());
}

throw new TokenAlreadyEexpired('Token 刷新时间已过,请重新登录', $this->getReloginCode());
Expand Down

0 comments on commit e1e3579

Please sign in to comment.