修复webhook前后端字段类型不一致导致工作流失败的问题

This commit is contained in:
v-me-50
2025-09-04 17:57:22 +08:00
parent f1544ecd8b
commit 51548f6788
2 changed files with 26 additions and 5 deletions

View File

@@ -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,