【修复】webhook申请多域名证书时对同一个域名重复添加验证

【调整】bt-domain请求失败判断
This commit is contained in:
v-me-50
2025-09-30 10:56:19 +08:00
parent 6258555c47
commit 0bb09ae6e5
2 changed files with 11 additions and 6 deletions

View File

@@ -76,6 +76,9 @@ func (c *Config) MakeRequest(method, path string, data interface{}) (map[string]
if err := json.Unmarshal(respBytes, &result); err != nil {
return nil, err
}
if !result["status"].(bool) {
return nil, fmt.Errorf("API 请求失败: %v", result["msg"])
}
return result, nil
}