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
3.7.0版本小程序,刷新token,lock之后,里面没有再去获取下token。
WxMaServiceImpl类中getAccessToken方法, lock.lock()之后,没有再去获取下token,高并发情况下,导致后续的线程覆盖刷新
The text was updated successfully, but these errors were encountered:
建议看下官方文档:公众平台后台会保证在5分钟内,新老 access_token 都可用 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken.html
公众平台后台会保证在5分钟内,新老 access_token 都可用
Sorry, something went wrong.
不过可以考虑加上重新读取最新token的逻辑,避免多次刷新token
🎨 #1554 优化小程序获取token逻辑,减少刷新请求次数
b87ec9a
3.7.9.B版本已优化
No branches or pull requests
简要描述
3.7.0版本小程序,刷新token,lock之后,里面没有再去获取下token。
模块版本情况
详细描述
WxMaServiceImpl类中getAccessToken方法, lock.lock()之后,没有再去获取下token,高并发情况下,导致后续的线程覆盖刷新
The text was updated successfully, but these errors were encountered: