use of com.thatday.user.modules.user.dto.LoginResultDTO in project spring-cloud-alibaba by longlylong.
the class WxMaUserController method getCommonLoginResult.
private Result<LoginResultDTO> getCommonLoginResult(@RequestBody @Valid CommonLoginVo vo, String appId) {
try {
WxMaService wxMaService = WxMaConfiguration.getMaService(appId);
WxMaJscode2SessionResult session = wxMaService.getUserService().getSessionInfo(vo.getCode());
String openId = session.getOpenid();
Result<LoginResultDTO> token = null;
return token;
} catch (WxErrorException e) {
throw TDExceptionHandler.throwGlobalException("getCommonLoginResult", e);
}
}
Aggregations