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
想要对微信小程序配置类 cn.binarywang.wx.miniapp.config.impl.WxMaRedisConfigImpl 进行完善,使它可以根据数据库编号使用不同的 Redis 数据库,还有添加密码认证功能。
cn.binarywang.wx.miniapp.config.impl.WxMaRedisConfigImpl
着手实现的时候发现 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
updateAccessToken
里面的 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
accessToken.getAccessToken()
accessToken.getExpiresIn()
me.chanjar.weixin.common.bean.WxAccessToken
其它使用到 WxAccessToken 类的方法,都有类似错误。例如 cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl、me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl。 需要如何修复?
WxAccessToken
cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl
me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl
The text was updated successfully, but these errors were encountered:
报错,是指什么报错
Sorry, something went wrong.
WxAccessToken 里不存在这两个方法
哦。。是 lombok 没生成出来的问题,自己疏忽了!
lombok
No branches or pull requests
简要描述
想要对微信小程序配置类
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.WxMaDefaultConfigImpl
、me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl
。需要如何修复?
The text was updated successfully, but these errors were encountered: