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
公众号和企业号模块均没有对40014的access_token问题({"errcode":40014,"errmsg":"invalid access_token"})做判断,进而重新刷新token,不知道各位遇到过没?
{"errcode":40014,"errmsg":"invalid access_token"}
/* * 发生以下情况时尝试刷新access_token * 40001 获取access_token时AppSecret错误,或者access_token无效 * 42001 access_token超时 */ if (error.getErrorCode() == 42001 || error.getErrorCode() == 40001) { // 强制设置wxMpConfigStorage它的access token过期了,这样在下一次请求里就会刷新access token this.getWxMpConfigStorage().expireAccessToken(); if (this.getWxMpConfigStorage().autoRefreshToken()) { return this.execute(executor, uri, data); } }
The text was updated successfully, but these errors were encountered:
先加上此判断
Sorry, something went wrong.
出现40014的access_token问题时需要自动刷新token #197
67a846b
No branches or pull requests
公众号和企业号模块均没有对40014的access_token问题(
{"errcode":40014,"errmsg":"invalid access_token"}
)做判断,进而重新刷新token,不知道各位遇到过没?The text was updated successfully, but these errors were encountered: