mirror of https://github.com/allinssl/allinssl
【调整】WEBHOOK参数传递为空时的默认值
parent
f38af158b9
commit
b40da5378f
|
@ -34,6 +34,10 @@ func NewWebHookReporter(config *ReportConfig, logger *public.Logger) *WebHookRep
|
|||
client.SetTLSClientConfig(&tls.Config{InsecureSkipVerify: true})
|
||||
}
|
||||
|
||||
if config.Data == "" {
|
||||
config.Data = "{}" // 默认数据为空JSON对象
|
||||
}
|
||||
|
||||
return &WebHookReporter{
|
||||
config: config,
|
||||
logger: logger,
|
||||
|
|
Loading…
Reference in New Issue