@Configuration @EnableConfigurationProperties(value=WxMaProperties.class) @ConditionalOnProperty(prefix="yue.auth.service.wx.miniapp", name="enabled", havingValue="true") public class WxMaUser extends Object
Constructor and Description |
---|
WxMaUser() |
Modifier and Type | Method and Description |
---|---|
cn.binarywang.wx.miniapp.bean.WxMaPhoneNumberInfo |
getCellphone(String appid,
String sessionKey,
String encryptedData,
String iv)
获取用户绑定手机号信息
|
cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult |
getSessionInfo(String appid,
String code)
获取登录后的session信息
|
cn.binarywang.wx.miniapp.bean.WxMaUserInfo |
getUserInfo(String appid,
String sessionKey,
String signature,
String rawData,
String encryptedData,
String iv)
获取用户信息
|
public cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult getSessionInfo(String appid, String code)
appid
- APPIDcode
- 授权CODE码unionid 用户在开放平台的唯一标识符,在满足 UnionID 下发条件的情况下会返回,详见 UnionID 机制说明 。
public cn.binarywang.wx.miniapp.bean.WxMaUserInfo getUserInfo(String appid, String sessionKey, String signature, String rawData, String encryptedData, String iv)
获取用户信息
appid
- APPIDsessionKey
- 会话密钥signature
- 数据签名rawData
- 微信用户基本信息encryptedData
- 消息密文iv
- 加密算法的初始向量Copyright © 2022 Pivotal Software, Inc.. All rights reserved.