package com.yeshi.buwan.service.manager;
|
|
import com.yeshi.buwan.util.RedisManager;
|
import org.springframework.stereotype.Component;
|
import org.yeshi.utils.entity.wx.WeiXinUser;
|
import org.yeshi.utils.wx.WXAppLoginUtil;
|
|
import javax.annotation.Resource;
|
|
//微信登录管理器
|
@Component
|
public class WXLoginManager {
|
|
@Resource
|
private RedisManager redisManager;
|
|
|
/**
|
* 获取
|
*
|
* @param code
|
* @param appId
|
* @param appSecret
|
* @return
|
*/
|
public WeiXinUser getUserInfo(String code, String appId, String appSecret) {
|
return WXAppLoginUtil.getWeiXinUser(code, appId, appSecret);
|
}
|
|
|
}
|