|
@ -181,7 +181,13 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol |
|
|
userTokenResultDTO.setToken(token); |
|
|
userTokenResultDTO.setToken(token); |
|
|
|
|
|
|
|
|
//7.发送登录事件
|
|
|
//7.发送登录事件
|
|
|
sendLoginEvent(staffLatestAgencyResultDTO.getStaffId(), formDTO.getAppId()); |
|
|
try { |
|
|
|
|
|
sendLoginEvent(staffLatestAgencyResultDTO.getStaffId(), formDTO.getAppId()); |
|
|
|
|
|
} catch (RenException e) { |
|
|
|
|
|
log.error(e.getInternalMsg()); |
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
log.error("【工作端workLogin登录】发送登录事件失败,程序继续执行。错误信息"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return userTokenResultDTO; |
|
|
return userTokenResultDTO; |
|
|
} |
|
|
} |
|
@ -404,6 +410,15 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol |
|
|
|
|
|
|
|
|
UserTokenResultDTO userTokenResultDTO = new UserTokenResultDTO(); |
|
|
UserTokenResultDTO userTokenResultDTO = new UserTokenResultDTO(); |
|
|
userTokenResultDTO.setToken(token); |
|
|
userTokenResultDTO.setToken(token); |
|
|
|
|
|
|
|
|
|
|
|
//6.发送登录事件
|
|
|
|
|
|
try { |
|
|
|
|
|
sendLoginEvent(customerStaff.getUserId(), formDTO.getAppId()); |
|
|
|
|
|
} catch (RenException e) { |
|
|
|
|
|
log.error(e.getInternalMsg()); |
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
log.error("【工作端enterOrg登录】发送登录事件失败,程序继续执行。错误信息"); |
|
|
|
|
|
} |
|
|
return userTokenResultDTO; |
|
|
return userTokenResultDTO; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -663,12 +678,8 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol |
|
|
SystemMsgFormDTO form = new SystemMsgFormDTO(); |
|
|
SystemMsgFormDTO form = new SystemMsgFormDTO(); |
|
|
form.setMessageType(SystemMessageType.LOGIN); |
|
|
form.setMessageType(SystemMessageType.LOGIN); |
|
|
form.setContent(loginMQMsg); |
|
|
form.setContent(loginMQMsg); |
|
|
Result result = messageOpenFeignClient.sendSystemMsgByMQ(form); |
|
|
messageOpenFeignClient.sendSystemMsgByMQ(form); |
|
|
try { |
|
|
//getResultDataOrThrowsException(result, ServiceConstant.EPMET_MESSAGE_SERVER, EpmetErrorCode.SERVER_ERROR.getCode(), "调用Message服务,发送登录事件到MQ失败");
|
|
|
getResultDataOrThrowsException(result, ServiceConstant.EPMET_MESSAGE_SERVER, EpmetErrorCode.SERVER_ERROR.getCode(), "调用Message服务,发送登录事件到MQ失败"); |
|
|
|
|
|
} catch (RenException e) { |
|
|
|
|
|
log.error(e.getInternalMsg()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|