Skip to content

WxAccessToken 缺少方法 #1313

Description

@xJoeWoo

简要描述

想要对微信小程序配置类 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
需要如何修复?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions