fixed 1panel system ssl deploy

This commit is contained in:
Bigsk
2025-06-13 23:43:24 +08:00
parent a048eb95a9
commit 9542079e20
3 changed files with 17 additions and 4 deletions

View File

@@ -7,7 +7,13 @@ import (
func (c *Client) UpdateSystemSSL(req *UpdateSystemSSLRequest) (*UpdateSystemSSLResponse, error) {
resp := &UpdateSystemSSLResponse{}
err := c.sendRequestWithResult(http.MethodPost, "/settings/ssl/update", req, resp)
path := "/settings/ssl/update"
if c.version == "v2" {
path = "/core" + path
}
err := c.sendRequestWithResult(http.MethodPost, path, req, resp)
return resp, err
}