|
|
@ -210,7 +210,7 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol |
|
|
|
|
|
|
|
//7.发送登录事件
|
|
|
|
try { |
|
|
|
sendLoginEvent(staffLatestAgencyResultDTO.getStaffId(), formDTO.getAppId(), AppClientConstant.APP_GOV, AppClientConstant.CLIENT_WXMP,userWechatDTO.getCustomerId()); |
|
|
|
sendLoginEvent(staffLatestAgencyResultDTO.getStaffId(), formDTO.getAppId(), AppClientConstant.APP_GOV, AppClientConstant.CLIENT_WXMP); |
|
|
|
} catch (RenException e) { |
|
|
|
log.error(e.getInternalMsg()); |
|
|
|
} catch (Exception e) { |
|
|
@ -441,7 +441,7 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol |
|
|
|
|
|
|
|
//6.发送登录事件
|
|
|
|
try { |
|
|
|
sendLoginEvent(customerStaff.getUserId(), formDTO.getAppId(), AppClientConstant.APP_GOV, AppClientConstant.CLIENT_WXMP, formDTO.getCustomerId()); |
|
|
|
sendLoginEvent(customerStaff.getUserId(), formDTO.getAppId(), AppClientConstant.APP_GOV, AppClientConstant.CLIENT_WXMP); |
|
|
|
} catch (RenException e) { |
|
|
|
log.error(e.getInternalMsg()); |
|
|
|
} catch (Exception e) { |
|
|
@ -503,7 +503,7 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol |
|
|
|
|
|
|
|
//6.发送登录事件
|
|
|
|
try { |
|
|
|
sendLoginEvent(customerStaff.getUserId(), formDTO.getAppId(), AppClientConstant.APP_GOV, AppClientConstant.CLIENT_WXMP, formDTO.getCustomerId()); |
|
|
|
sendLoginEvent(customerStaff.getUserId(), formDTO.getAppId(), AppClientConstant.APP_GOV, AppClientConstant.CLIENT_WXMP); |
|
|
|
} catch (RenException e) { |
|
|
|
log.error(e.getInternalMsg()); |
|
|
|
} catch (Exception e) { |
|
|
@ -822,7 +822,7 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol |
|
|
|
* @author wxz |
|
|
|
* @date 2021.06.08 15:27 |
|
|
|
*/ |
|
|
|
private void sendLoginEvent(String userId, String appId, String fromApp, String fromClient,String customerId) { |
|
|
|
private void sendLoginEvent(String userId, String appId, String fromApp, String fromClient) { |
|
|
|
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest(); |
|
|
|
|
|
|
|
LoginMQMsg loginMQMsg = new LoginMQMsg(); |
|
|
@ -832,12 +832,6 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol |
|
|
|
loginMQMsg.setIp(IpUtils.getIpAddr(request)); |
|
|
|
loginMQMsg.setFromApp(fromApp); |
|
|
|
loginMQMsg.setFromClient(fromClient); |
|
|
|
CustomerStaffInfoCacheResult staffInfo = CustomerStaffRedis.getStaffInfo(customerId, userId); |
|
|
|
if (null == staffInfo){ |
|
|
|
throw new EpmetException("未查询到工作人员信息:"+userId); |
|
|
|
} |
|
|
|
loginMQMsg.setOrgId(staffInfo.getAgencyId()); |
|
|
|
loginMQMsg.setOrgIdPath(StringUtils.isBlank(staffInfo.getAgencyPIds()) ? staffInfo.getAgencyId() : staffInfo.getAgencyPIds().concat(":").concat(staffInfo.getAgencyId())); |
|
|
|
SystemMsgFormDTO form = new SystemMsgFormDTO(); |
|
|
|
form.setMessageType(AuthOperationConstants.LOGIN); |
|
|
|
form.setContent(loginMQMsg); |
|
|
|