mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-24 06:34:32 +08:00
【修复】webhook申请多域名证书时对同一个域名重复添加验证
【调整】bt-domain请求失败判断
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user