fix: 修正无法部署到雨云证书中心的问题

This commit is contained in:
unknown-o
2025-12-09 13:27:09 +00:00
parent f86f8bb618
commit 8654235665
4 changed files with 14 additions and 7 deletions

View File

@@ -111,7 +111,7 @@ func Deploy(cfg map[string]any, logger *public.Logger) error {
logger.Debug("通过Webhook推送证书...")
return webhook.Deploy(cfg)
case "rainyun-sslcenter":
logger.Debug("通过Webhook推送证书...")
logger.Debug("部署到雨云证书...")
return DeployRainyunSSLCenter(cfg)
default:
return fmt.Errorf("不支持的部署: %s", providerName)

View File

@@ -90,7 +90,7 @@ func DeployRainyunSSLCenter(cfg map[string]any) error {
// 更新证书中心
reqPath := fmt.Sprintf("/product/sslcenter/%s", certId)
resp, err := requestRainyunApi(reqPath, apiKey, http.MethodPost, cert)
resp, err := requestRainyunApi(reqPath, apiKey, http.MethodPut, cert)
if err != nil {
return err
}