♻️ 通知支持自定义 request header

This commit is contained in:
naiba
2021-11-05 12:04:39 +08:00
parent d20fd7a9fe
commit 6636d77cfd
7 changed files with 60 additions and 17 deletions

View File

@@ -366,6 +366,7 @@ type notificationForm struct {
URL string
RequestMethod int
RequestType int
RequestHeader string
RequestBody string
VerifySSL string
}
@@ -378,6 +379,7 @@ func (ma *memberAPI) addOrEditNotification(c *gin.Context) {
n.Name = nf.Name
n.RequestMethod = nf.RequestMethod
n.RequestType = nf.RequestType
n.RequestHeader = nf.RequestHeader
n.RequestBody = nf.RequestBody
n.URL = nf.URL
verifySSL := nf.VerifySSL == "on"