【新增】【通知】WebHOOK通知类型

This commit is contained in:
wantoper
2025-05-28 14:39:33 +08:00
parent 39f66a981a
commit b177c20cb4
5 changed files with 276 additions and 49 deletions

View File

@@ -124,6 +124,8 @@ func NotifyTest(id string) error {
switch providerData["type"] {
case "mail":
err = NotifyMail(params)
case "webhook":
err = NotifyWebHook(params)
}
return err
}
@@ -141,6 +143,8 @@ func Notify(params map[string]any) error {
return NotifyMail(params)
// case "btpanel-site":
// return NotifyBt(params)
case "webhook":
return NotifyWebHook(params)
default:
return fmt.Errorf("不支持的通知类型")
}