|
|
@ -34,7 +34,7 @@ public class ScriptAlertChannel implements AlertChannel { |
|
|
|
AlertData alertData = alertinfo.getAlertData(); |
|
|
|
AlertData alertData = alertinfo.getAlertData(); |
|
|
|
Map<String, String> paramsMap = alertinfo.getAlertParams(); |
|
|
|
Map<String, String> paramsMap = alertinfo.getAlertParams(); |
|
|
|
if (null == paramsMap) { |
|
|
|
if (null == paramsMap) { |
|
|
|
return new AlertResult("false", "ding talk params is null"); |
|
|
|
return new AlertResult("false", "script params is null"); |
|
|
|
} |
|
|
|
} |
|
|
|
return new ScriptSender(paramsMap).sendScriptAlert(alertData.getTitle(),alertData.getContent()); |
|
|
|
return new ScriptSender(paramsMap).sendScriptAlert(alertData.getTitle(),alertData.getContent()); |
|
|
|
} |
|
|
|
} |
|
|
|