类 WxMaLoginServiceImpl

java.lang.Object
net.guerlab.smart.wx.service.service.impl.AbstractWxLoginServiceImpl
net.guerlab.smart.wx.service.service.impl.WxMaLoginServiceImpl
所有已实现的接口:
LoginService, WxMaLoginService

@Service
public class WxMaLoginServiceImpl
extends AbstractWxLoginServiceImpl
implements WxMaLoginService
微信小程序登录服务实现
作者:
guer
  • 构造器详细资料

  • 方法详细资料

    • login

      public net.guerlab.smart.wx.core.domain.LoginResponse login​(java.lang.String appId, java.lang.String code, java.lang.String ip, java.lang.String referer, net.guerlab.smart.platform.auth.factory.TokenFactory<net.guerlab.smart.wx.core.entity.IWxUserTokenInfo> tokenFactory)
      从接口复制的说明: LoginService
      登录
      指定者:
      login 在接口中 LoginService
      参数:
      appId - appId
      code - code
      ip - ip
      referer - 登录源
      tokenFactory - token工厂
      返回:
      token
    • register

      public net.guerlab.smart.wx.core.domain.LoginResponse register​(java.lang.String appId, java.lang.String openId, net.guerlab.smart.wx.core.domain.MaEncryptedData encryptedData, net.guerlab.smart.platform.auth.factory.TokenFactory<net.guerlab.smart.wx.core.entity.IWxUserTokenInfo> tokenFactory, java.lang.String ip)
      从接口复制的说明: WxMaLoginService
      注册
      指定者:
      register 在接口中 WxMaLoginService
      参数:
      appId - appId
      openId - openId
      encryptedData - 小程序加密信息请求
      tokenFactory - token工厂
      ip - 登录IP
      返回:
      token
    • getPhoneNumber

      public java.lang.String getPhoneNumber​(java.lang.String appId, java.lang.String openId, net.guerlab.smart.wx.core.domain.MaEncryptedData encryptedData)
      从接口复制的说明: WxMaLoginService
      获取手机号
      指定者:
      getPhoneNumber 在接口中 WxMaLoginService
      参数:
      appId - appId
      openId - openId
      encryptedData - 小程序加密信息请求
      返回:
      手机号
    • setManagerService

      @Autowired public void setManagerService​(WxMaManagerService managerService)
    • setSessionKeyStorage

      @Autowired public void setSessionKeyStorage​(net.guerlab.smart.wx.miniapp.spring.storage.ISessionKeyStorage sessionKeyStorage)