We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前过期是抛出异常,没有具体的错误码啥的,怎么判断,难道try catch吗
The text was updated successfully, but these errors were encountered:
1、你可以使用 https://www.workerman.net/plugin/16 这个插件 2、你可以自己实现框架的异常类捕获过期异常类,自定义自己具体的错误码啥的
Sorry, something went wrong.
try { JwtToken::getCurrentId(); } catch (JwtTokenException|JwtTokenExpiredException) { throw new ApiException('身份验证失败,请重新登录', 401); }
是的, 你也可以这样子捕捉异常
No branches or pull requests
目前过期是抛出异常,没有具体的错误码啥的,怎么判断,难道try catch吗
The text was updated successfully, but these errors were encountered: