企业微信通知,钉钉通知,get方法给post方法
parent
85988e297f
commit
b0bcea7d81
|
@ -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()));
|
||||
}
|
||||
|
|
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue