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

WxAccessToken 缺少方法 #1313

Closed
xJoeWoo opened this issue Dec 5, 2019 · 3 comments
Closed

WxAccessToken 缺少方法 #1313

xJoeWoo opened this issue Dec 5, 2019 · 3 comments

Comments

@xJoeWoo
Copy link

xJoeWoo commented Dec 5, 2019

简要描述

想要对微信小程序配置类 cn.binarywang.wx.miniapp.config.impl.WxMaRedisConfigImpl 进行完善,使它可以根据数据库编号使用不同的 Redis 数据库,还有添加密码认证功能。

着手实现的时候发现 updateAccessToken 方法:
https://github.com/Wechat-Group/WxJava/blob/476b067392264098cfcb4c5c516555052290093c/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedisConfigImpl.java#L131-L134

里面的 accessToken.getAccessToken()accessToken.getExpiresIn() 报错,原因是 me.chanjar.weixin.common.bean.WxAccessToken 里面没有这两个方法:
https://github.com/Wechat-Group/WxJava/blob/70f42e21cc642a61e954f1e2ff3743df21684cd6/weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxAccessToken.java#L14-L25

其它使用到 WxAccessToken 类的方法,都有类似错误。例如 cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImplme.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl
需要如何修复?

@binarywang
Copy link
Owner

报错,是指什么报错

@xJoeWoo
Copy link
Author

xJoeWoo commented Dec 8, 2019

WxAccessToken 里不存在这两个方法

image

@xJoeWoo
Copy link
Author

xJoeWoo commented Dec 9, 2019

哦。。是 lombok 没生成出来的问题,自己疏忽了!

@xJoeWoo xJoeWoo closed this as completed Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants