From b0bcea7d8165101645cd7e039cf1d438b56af055 Mon Sep 17 00:00:00 2001 From: gaoyoulong <774597026@qq.com> Date: Tue, 20 Feb 2024 11:02:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=EF=BC=8C=E9=92=89=E9=92=89=E9=80=9A=E7=9F=A5=EF=BC=8C?= =?UTF-8?q?get=E6=96=B9=E6=B3=95=E7=BB=99post=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cc/iotkit/message/listener/DingTalkEventListener.java | 2 +- .../java/cc/iotkit/message/listener/QyWechatEventListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iot-module/iot-message-notify/src/main/java/cc/iotkit/message/listener/DingTalkEventListener.java b/iot-module/iot-message-notify/src/main/java/cc/iotkit/message/listener/DingTalkEventListener.java index 74e53da2..aa9d37d6 100644 --- a/iot-module/iot-message-notify/src/main/java/cc/iotkit/message/listener/DingTalkEventListener.java +++ b/iot-module/iot-message-notify/src/main/java/cc/iotkit/message/listener/DingTalkEventListener.java @@ -33,7 +33,7 @@ public class DingTalkEventListener implements MessageEventListener { .text(DingTalkMessage.MessageContent.builder().content(message.getFormatContent()).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())) .onFailure(err -> log.error("Something went wrong " + err.getMessage())); } diff --git a/iot-module/iot-message-notify/src/main/java/cc/iotkit/message/listener/QyWechatEventListener.java b/iot-module/iot-message-notify/src/main/java/cc/iotkit/message/listener/QyWechatEventListener.java index b75d2801..5dac279b 100644 --- a/iot-module/iot-message-notify/src/main/java/cc/iotkit/message/listener/QyWechatEventListener.java +++ b/iot-module/iot-message-notify/src/main/java/cc/iotkit/message/listener/QyWechatEventListener.java @@ -33,7 +33,7 @@ public class QyWechatEventListener implements MessageEventListener { .text(QyWechatMessage.MessageContent.builder().content(message.getFormatContent()).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())) .onFailure(err -> log.error("Something went wrong " + err.getMessage())); }