Skip to content

Commit 79f66af

Browse files
authored
token 已失效的情况处理
1 parent 4f7a2c8 commit 79f66af

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Middleware/Jwt.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public function handle($request, \Closure $next, $store = null)
3939
$model = $user->getClass();
4040
$this->app->bind($model, $info);
4141
}
42+
} else {
43+
throw new JWTException('登录校验已失效, 请重新登录', 401);
4244
}
4345

4446
return $next($request);

0 commit comments

Comments
 (0)