|
@@ -295,14 +295,26 @@ public class LabMessageContentServiceImpl implements ILabMessageContentService {
|
|
|
textMessageVo.setTempContent("【忠江科技】{lab_name}-{risk_name}数值异常,请立即核实处理!");
|
|
textMessageVo.setTempContent("【忠江科技】{lab_name}-{risk_name}数值异常,请立即核实处理!");
|
|
|
if (alarms.contains(callType) && alarms.contains(smsType)) {
|
|
if (alarms.contains(callType) && alarms.contains(smsType)) {
|
|
|
// alarmEntrty = new AlarmEntrty(Routes.NoticePush, strings, format);
|
|
// alarmEntrty = new AlarmEntrty(Routes.NoticePush, strings, format);
|
|
|
- remoteSmsService.sendVoiceMessage(textMessageVo);
|
|
|
|
|
- remoteSmsService.sendTemplateMessage(textMessageVo);
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ remoteSmsService.sendVoiceMessage(textMessageVo);
|
|
|
|
|
+ remoteSmsService.sendTemplateMessage(textMessageVo);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ logger.info("远程打电话发短信调用异常!{}",e);
|
|
|
|
|
+ }
|
|
|
}else if(alarms.contains(callType)){
|
|
}else if(alarms.contains(callType)){
|
|
|
// alarmEntrty = new AlarmEntrty(Routes.NoticePush, strings, SendTypes.Call.toString(),format);
|
|
// alarmEntrty = new AlarmEntrty(Routes.NoticePush, strings, SendTypes.Call.toString(),format);
|
|
|
- remoteSmsService.sendVoiceMessage(textMessageVo);
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ remoteSmsService.sendVoiceMessage(textMessageVo);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ logger.info("远程打电话调用异常!{}",e);
|
|
|
|
|
+ }
|
|
|
}else if(alarms.contains(smsType)) {
|
|
}else if(alarms.contains(smsType)) {
|
|
|
// alarmEntrty = new AlarmEntrty(Routes.NoticePush, strings, SendTypes.SMS.toString(),format);
|
|
// alarmEntrty = new AlarmEntrty(Routes.NoticePush, strings, SendTypes.SMS.toString(),format);
|
|
|
- remoteSmsService.sendTemplateMessage(textMessageVo);
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ remoteSmsService.sendTemplateMessage(textMessageVo);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ logger.info("远程发短信调用异常!{}",e);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
// alarmEntrty.setUserPhoneInfo(userPhoneInfos);
|
|
// alarmEntrty.setUserPhoneInfo(userPhoneInfos);
|
|
|
// alarmEntrty.setLogId(logId);
|
|
// alarmEntrty.setLogId(logId);
|