mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-08 07:41:10 +08:00
【调整】WEBHOOK参数传递为空时的默认值
This commit is contained in:
@@ -34,6 +34,10 @@ func NewWebHookReporter(config *ReportConfig, logger *public.Logger) *WebHookRep
|
|||||||
client.SetTLSClientConfig(&tls.Config{InsecureSkipVerify: true})
|
client.SetTLSClientConfig(&tls.Config{InsecureSkipVerify: true})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if config.Data == "" {
|
||||||
|
config.Data = "{}" // 默认数据为空JSON对象
|
||||||
|
}
|
||||||
|
|
||||||
return &WebHookReporter{
|
return &WebHookReporter{
|
||||||
config: config,
|
config: config,
|
||||||
logger: logger,
|
logger: logger,
|
||||||
|
|||||||
Reference in New Issue
Block a user