...
|
...
|
@@ -46,6 +46,21 @@ public class AlarmMsgServiceImpl implements AlarmMsgService { |
|
|
*/
|
|
|
@Override
|
|
|
public boolean sendSms(String type, String content, String mobile) {
|
|
|
|
|
|
return sendSms(type, content, "", mobile);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 发送短信
|
|
|
*
|
|
|
* @param type
|
|
|
* @param content
|
|
|
* @param alarmInfo
|
|
|
* @param mobile
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
public boolean sendSms(String type, String content, String alarmInfo, String mobile) {
|
|
|
Map<String, String> contentMap = new HashMap<String, String>();
|
|
|
contentMap.put("OperID", sendsmsConfig.getUserName());
|
|
|
contentMap.put("OperPass", sendsmsConfig.getPwd());
|
...
|
...
|
@@ -75,7 +90,7 @@ public class AlarmMsgServiceImpl implements AlarmMsgService { |
|
|
}
|
|
|
|
|
|
try {
|
|
|
monitorAlarmMapper.insertAlarmMsg(InfluxDBContants.AWS, type, content, "", sendStatus ? "successed" : "failed");
|
|
|
monitorAlarmMapper.insertAlarmMsg(InfluxDBContants.AWS, type, content, alarmInfo, sendStatus ? "successed" : "failed");
|
|
|
}catch (Exception e){
|
|
|
logger.error("insert sms into influxdb failed",e);
|
|
|
}
|
...
|
...
|
|