mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-21 05:08:58 +08:00
【新增】【通知】WebHOOK通知类型
This commit is contained in:
@@ -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("不支持的通知类型")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user