mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
🐛 默认请求方式
This commit is contained in:
@@ -42,17 +42,14 @@ func (n *Notification) reqURL(message string) string {
|
||||
}
|
||||
|
||||
func (n *Notification) reqMethod() string {
|
||||
switch n.RequestMethod {
|
||||
case NotificationRequestMethodGET:
|
||||
return http.MethodGet
|
||||
case NotificationRequestMethodPOST:
|
||||
return http.MethodGet
|
||||
if n.RequestMethod == NotificationRequestMethodPOST {
|
||||
return http.MethodPost
|
||||
}
|
||||
return ""
|
||||
return http.MethodGet
|
||||
}
|
||||
|
||||
func (n *Notification) reqBody(message string) (string, error) {
|
||||
if n.RequestMethod == NotificationRequestMethodGET {
|
||||
if n.RequestMethod == NotificationRequestMethodGET || message == "" {
|
||||
return "", nil
|
||||
}
|
||||
switch n.RequestType {
|
||||
|
||||
Reference in New Issue
Block a user