|
@@ -42,16 +42,16 @@ public class BuildSceneDTServiceImpl implements IBuildSceneDTService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void handFail(String reason, String serverPath, String num, String hostName, String message) {
|
|
public void handFail(String reason, String serverPath, String num, String hostName, String message) {
|
|
- CompletableFuture.runAsync(() -> {
|
|
|
|
- try {
|
|
|
|
- String contentFormat = StrUtil.isBlank(message) ? this.DINGTALK_MSG_PATTERN : this.DINGTALK_MSG_PATTERN + contentExt;
|
|
|
|
- String content = String.format(contentFormat, this.environment, hostName, reason, num, serverPath, num, num);
|
|
|
|
- log.info("发送钉钉消息,content:{}", content);
|
|
|
|
- dingTalkSendUtils.sendActioncardMsgToDingRobot(content,"场景计算失败");
|
|
|
|
- } catch (ApiException | UnsupportedEncodingException | NoSuchAlgorithmException | InvalidKeyException apiException) {
|
|
|
|
- log.error("发送钉钉消息失败", apiException);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+// CompletableFuture.runAsync(() -> {
|
|
|
|
+// try {
|
|
|
|
+// String contentFormat = StrUtil.isBlank(message) ? this.DINGTALK_MSG_PATTERN : this.DINGTALK_MSG_PATTERN + contentExt;
|
|
|
|
+// String content = String.format(contentFormat, this.environment, hostName, reason, num, serverPath, num, num);
|
|
|
|
+// log.info("发送钉钉消息,content:{}", content);
|
|
|
|
+// dingTalkSendUtils.sendActioncardMsgToDingRobot(content,"场景计算失败");
|
|
|
|
+// } catch (ApiException | UnsupportedEncodingException | NoSuchAlgorithmException | InvalidKeyException apiException) {
|
|
|
|
+// log.error("发送钉钉消息失败", apiException);
|
|
|
|
+// }
|
|
|
|
+// });
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|