更新token解析

This commit is contained in:
yaooo 2023-11-10 18:10:37 +08:00
parent 1aab9536c0
commit fac58107b9
1 changed files with 3 additions and 3 deletions

View File

@ -79,11 +79,11 @@ class JwtTokenService
return $jwtData;
} catch(\Firebase\JWT\SignatureInvalidException $e) {
throw new \think\Exception('签名错误');
}catch(\Firebase\JWT\BeforeValidException $e) {
} catch(\Firebase\JWT\BeforeValidException $e) {
throw new \think\Exception('token无效');
}catch(\Firebase\JWT\ExpiredException $e) {
} catch(\Firebase\JWT\ExpiredException $e) {
throw new \think\Exception('token已过期');
}catch(\Exception $e) {
} catch(\Exception $e) {
throw new \think\Exception('非法请求');
}
}