mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-07 23:31:10 +08:00
fix: 修正无法部署到雨云证书中心的问题
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user