Skip to content
New issue

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

开放平台获取公众号getAuthorizerAccessToken()方法疑问?版本号: 3.8.0 #1590

Closed
liyang-liuna opened this issue May 29, 2020 · 2 comments

Comments

@liyang-liuna
Copy link

me.chanjar.weixin.open.api.impl.WxOpenComponentServiceImpl#getAuthorizerAccessToken()

这个方法在获取/刷新公众号AuthorizerAccessToken后,WxOpenConfigStorage 类仅更新了 AuthorizerAccessToken。没有更新 AuthorizerRefreshToken。这样的话,会不会导致 AuthorizerRefreshToken 无效,导致下次在更新获取 AuthorizerAccessToken时 失败?

@liyang-liuna liyang-liuna changed the title 开放平台获取公众号getAuthorizerAccessToken()方法疑问? 开放平台获取公众号getAuthorizerAccessToken()方法疑问?版本号: 3.8.0 May 29, 2020
@binarywang
Copy link
Member

@007gzs 如果有时间可以帮忙看下

@einsitang
Copy link
Member

的确会存在该问题,在ISSUE#1474的基础上补充代码(PR#1677)

einsitang added a commit to einsitang/WxJava that referenced this issue Jul 20, 2020
…entServiceImpl#getAuthorizerAccessToken()刷新AccessToken后没有同步对应的refreshToken
binarywang pushed a commit that referenced this issue Jul 21, 2020
* #1474 新增客户联系「联系我」管理接口

* fix #1590 提及的me.chanjar.weixin.open.api.impl.WxOpenComponentServiceImpl#getAuthorizerAccessToken()刷新AccessToken后没有同步对应的refreshToken

* 补充 me.chanjar.weixin.open.api.impl.WxOpenInMemoryConfigStorage#updateToken 方法对 expireInSeconds 边界判断
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants