更新token解析
This commit is contained in:
parent
1aab9536c0
commit
fac58107b9
|
@ -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('非法请求');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue