Merge pull request #162 from AkkiaS7/enhance-notification
feat: 添加更多的占位符以支持基于服务器状态指标构造自定义的HTTP请求 Co-authored-by: AkkiaS7 <[email protected]>
This commit is contained in:
@@ -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不为空
|
||||
|
||||
Reference in New Issue
Block a user