类 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
-
字段概要
从类继承的字段 net.guerlab.smart.wx.service.service.impl.AbstractWxLoginServiceImpl
wxAppService, wxUserLoginLogService, wxUserService -
构造器概要
构造器 构造器 说明 WxMaLoginServiceImpl() -
方法概要
修饰符和类型 方法 说明 java.lang.StringgetPhoneNumber(java.lang.String appId, java.lang.String openId, net.guerlab.smart.wx.core.domain.MaEncryptedData encryptedData)获取手机号net.guerlab.smart.wx.core.domain.LoginResponselogin(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)登录net.guerlab.smart.wx.core.domain.LoginResponseregister(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)注册voidsetManagerService(WxMaManagerService managerService)voidsetSessionKeyStorage(net.guerlab.smart.wx.miniapp.spring.storage.ISessionKeyStorage sessionKeyStorage)从类继承的方法 net.guerlab.smart.wx.service.service.impl.AbstractWxLoginServiceImpl
buildLoginResponse, getDefaultTokenFactory, getWxApp, setWxAppService, setWxUserLoginLogService, setWxUserService, updateUserInfo
-
构造器详细资料
-
WxMaLoginServiceImpl
public WxMaLoginServiceImpl()
-
-
方法详细资料
-
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- appIdcode- codeip- ipreferer- 登录源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- appIdopenId- openIdencryptedData- 小程序加密信息请求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- appIdopenId- openIdencryptedData- 小程序加密信息请求- 返回:
- 手机号
-
setManagerService
-
setSessionKeyStorage
@Autowired public void setSessionKeyStorage(net.guerlab.smart.wx.miniapp.spring.storage.ISessionKeyStorage sessionKeyStorage)
-