Merge pull request #162 from AkkiaS7/enhance-notification

feat: 添加更多的占位符以支持基于服务器状态指标构造自定义的HTTP请求

Co-authored-by: AkkiaS7 <68485070+AkkiaS7@users.noreply.github.com>
This commit is contained in:
naiba
2022-04-18 21:15:06 +08:00
committed by GitHub
10 changed files with 155 additions and 23 deletions

View File

@@ -412,7 +412,11 @@ func (ma *memberAPI) addOrEditNotification(c *gin.Context) {
verifySSL := nf.VerifySSL == "on"
n.VerifySSL = &verifySSL
n.ID = nf.ID
err = n.Send("这是测试消息")
ns := model.NotificationServerBundle{
Notification: &n,
Server: nil,
}
err = ns.Send("这是测试消息")
}
if err == nil {
// 保证Tag不为空