admin
2021-03-06 7804263c6061aef813f0db27cb3046f746572606
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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);
    }
 
 
}