!36 fix: 企业微信,钉钉群机器人消息bug调整, get方法应改成post

Merge pull request !36 from 高友龙/dev-V0.5.0
V0.5.x
xiwa 2024-02-20 03:35:19 +00:00 committed by Gitee
commit 5e10533d50
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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())
.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()));
}

View File

@ -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()));
}