企业微信通知,钉钉通知,get方法给post方法

V0.5.x
gaoyoulong 2024-02-20 11:02:27 +08:00
parent 85988e297f
commit b0bcea7d81
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ public class DingTalkEventListener implements MessageEventListener {
.text(DingTalkMessage.MessageContent.builder().content(message.getFormatContent()).build()) .text(DingTalkMessage.MessageContent.builder().content(message.getFormatContent()).build())
.build(); .build();
client.getAbs(dingTalkConfig.getDingTalkWebhook()).sendJson(qyWechatMessage) client.postAbs(dingTalkConfig.getDingTalkWebhook()).sendJson(qyWechatMessage)
.onSuccess(response -> log.info("Received response with status code" + response.statusCode())) .onSuccess(response -> log.info("Received response with status code" + response.statusCode()))
.onFailure(err -> log.error("Something went wrong " + err.getMessage())); .onFailure(err -> log.error("Something went wrong " + err.getMessage()));
} }

View File

@ -33,7 +33,7 @@ public class QyWechatEventListener implements MessageEventListener {
.text(QyWechatMessage.MessageContent.builder().content(message.getFormatContent()).build()) .text(QyWechatMessage.MessageContent.builder().content(message.getFormatContent()).build())
.build(); .build();
client.getAbs(qyWechatConfig.getQyWechatWebhook()).sendJson(qyWechatMessage) client.postAbs(qyWechatConfig.getQyWechatWebhook()).sendJson(qyWechatMessage)
.onSuccess(response -> log.info("Received response with status code" + response.statusCode())) .onSuccess(response -> log.info("Received response with status code" + response.statusCode()))
.onFailure(err -> log.error("Something went wrong " + err.getMessage())); .onFailure(err -> log.error("Something went wrong " + err.getMessage()));
} }