perf: 支持飞书通知

This commit is contained in:
xiaojunnuo
2025-03-14 13:16:48 +08:00
parent 74c6a2266f
commit b82e1dcd62
6 changed files with 184 additions and 42 deletions

View File

@@ -148,7 +148,7 @@ export class WebhookNotification extends BaseNotification {
}
try {
await this.http.request({
const res = await this.http.request({
url: url,
method: this.method,
headers: {
@@ -158,6 +158,7 @@ export class WebhookNotification extends BaseNotification {
data: data,
skipSslVerify: this.skipSslVerify,
});
return res
} catch (e) {
if (e.response?.data) {
throw new Error(e.message + ',' + JSON.stringify(e.response.data));