mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-29 18:50:39 +00:00
change text to using variable msg
This commit is contained in:
parent
6d9b71c054
commit
ce2df137e6
1 changed files with 2 additions and 4 deletions
|
@ -9,17 +9,15 @@ class Feishu extends NotificationProvider {
|
|||
let okMsg = "Sent Successfully.";
|
||||
let feishuWebHookUrl = notification.feishuWebHookUrl;
|
||||
|
||||
console.log(heartbeatJSON);
|
||||
try {
|
||||
if (heartbeatJSON == null) {
|
||||
let testdata = {
|
||||
msg_type: "text",
|
||||
content: {
|
||||
text: "Testing Successful.",
|
||||
text: msg,
|
||||
},
|
||||
};
|
||||
var t = await axios.post(feishuWebHookUrl, testdata);
|
||||
console.log(t);
|
||||
await axios.post(feishuWebHookUrl, testdata);
|
||||
return okMsg;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue