|
|
@ -9,17 +9,15 @@ class Feishu extends NotificationProvider {
|
|
|
|
let okMsg = "Sent Successfully.";
|
|
|
|
let okMsg = "Sent Successfully.";
|
|
|
|
let feishuWebHookUrl = notification.feishuWebHookUrl;
|
|
|
|
let feishuWebHookUrl = notification.feishuWebHookUrl;
|
|
|
|
|
|
|
|
|
|
|
|
console.log(heartbeatJSON);
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (heartbeatJSON == null) {
|
|
|
|
if (heartbeatJSON == null) {
|
|
|
|
let testdata = {
|
|
|
|
let testdata = {
|
|
|
|
msg_type: "text",
|
|
|
|
msg_type: "text",
|
|
|
|
content: {
|
|
|
|
content: {
|
|
|
|
text: "Testing Successful.",
|
|
|
|
text: msg,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var t = await axios.post(feishuWebHookUrl, testdata);
|
|
|
|
await axios.post(feishuWebHookUrl, testdata);
|
|
|
|
console.log(t);
|
|
|
|
|
|
|
|
return okMsg;
|
|
|
|
return okMsg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|