mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-19 12:35:37 +08:00
修复webhook前后端字段类型不一致导致工作流失败的问题
This commit is contained in:
@@ -23,16 +23,14 @@ type DNSProvider struct {
|
||||
}
|
||||
|
||||
func NewConfig(WebhookConfigStr map[string]string) *Config {
|
||||
fmt.Println(WebhookConfigStr)
|
||||
|
||||
WebhookConfig := &public.WebhookConfig{
|
||||
Url: WebhookConfigStr["url"],
|
||||
Data: WebhookConfigStr["data"],
|
||||
Method: WebhookConfigStr["method"],
|
||||
Headers: WebhookConfigStr["headers"],
|
||||
IgnoreSSL: WebhookConfigStr["ignore_ssl"] == "true",
|
||||
IgnoreSSL: WebhookConfigStr["ignore_ssl"] == "1",
|
||||
}
|
||||
fmt.Println(WebhookConfig.Url)
|
||||
|
||||
return &Config{
|
||||
WebhookConfig: WebhookConfig,
|
||||
|
||||
Reference in New Issue
Block a user