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

This commit is contained in:
Akkia
2022-04-17 17:38:45 +08:00
parent 5e400807e0
commit f6a5362a97
4 changed files with 76 additions and 14 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不为空