debug
This commit is contained in:
parent
d2af8968da
commit
8027180040
|
|
@ -170,11 +170,14 @@ public class LoginServiceImpl implements ILoginService {
|
||||||
@Transactional
|
@Transactional
|
||||||
public LoginTokenVo mnpLogin(String code, Integer terminal) {
|
public LoginTokenVo mnpLogin(String code, Integer terminal) {
|
||||||
try {
|
try {
|
||||||
|
RedisUtils.set("mnpLogin111111", "mnpLoginmnpLoginmnpLogi111111nmnpLogin");
|
||||||
WxMaService wxMaService = WxMnpDriver.mnp();
|
WxMaService wxMaService = WxMnpDriver.mnp();
|
||||||
WxMaJscode2SessionResult sessionResult = wxMaService.getUserService().getSessionInfo(code);
|
WxMaJscode2SessionResult sessionResult = wxMaService.getUserService().getSessionInfo(code);
|
||||||
|
RedisUtils.set("mnpLogin", "mnpLoginmnpLoginmnpLoginmnpLogin");
|
||||||
String openId = sessionResult.getOpenid();
|
String openId = sessionResult.getOpenid();
|
||||||
String uniId = sessionResult.getUnionid();
|
String uniId = sessionResult.getUnionid();
|
||||||
String unionId = uniId == null ? "0" : uniId;
|
String unionId = uniId == null ? "0" : uniId;
|
||||||
|
RedisUtils.set("mnpLogin2222", "uniId:" + uniId + "; openId: " + openId);
|
||||||
|
|
||||||
return this.__wxLoginHandle(openId, unionId, "", "", terminal);
|
return this.__wxLoginHandle(openId, unionId, "", "", terminal);
|
||||||
} catch (WxErrorException e) {
|
} catch (WxErrorException e) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue