接口 IWxService

所有已知实现类:
WxServiceImpl

public interface IWxService
微信开发相关工具
  • 方法详细资料

    • getSessionInfo

      cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult getSessionInfo(String code)
      微信登录
      参数:
      code -
      返回:
    • info

      cn.binarywang.wx.miniapp.bean.WxMaUserInfo info(WxEncryptedData weixinEncryptedData)
      微信加密
      参数:
      weixinEncryptedData -
      返回:
    • getPhoneNumber

      String getPhoneNumber(WxEncryptedData weixinEncryptedData)
      获取用户手机号码
      参数:
      weixinEncryptedData -
      返回:
    • createQrCode

      byte[] createQrCode(String scene, String page) throws Exception
      创建二维码
      参数:
      scene - 携带的参数
      page - 页面
      返回:
      抛出:
      Exception
    • createQrCode

      void createQrCode(String scene, String page, jakarta.servlet.http.HttpServletResponse response) throws Exception
      创建二维码并输出到浏览器
      参数:
      scene - 携带的参数
      page - 页面
      response -
      抛出:
      Exception