mirror of https://github.com/usual2970/certimate
修复白山云API 400209错误
parent
65b199d392
commit
92bae0c439
|
@ -59,7 +59,7 @@ func (d *DeployerProvider) Deploy(ctx context.Context, certPem string, privkeyPe
|
||||||
// REF: https://portal.baishancloud.com/track/document/api/1/1065
|
// REF: https://portal.baishancloud.com/track/document/api/1/1065
|
||||||
getDomainConfigReq := &bssdk.GetDomainConfigRequest{
|
getDomainConfigReq := &bssdk.GetDomainConfigRequest{
|
||||||
Domains: d.config.Domain,
|
Domains: d.config.Domain,
|
||||||
Config: "https",
|
Config: []string{"https"},
|
||||||
}
|
}
|
||||||
getDomainConfigResp, err := d.sdkClient.GetDomainConfig(getDomainConfigReq)
|
getDomainConfigResp, err := d.sdkClient.GetDomainConfig(getDomainConfigReq)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -31,7 +31,7 @@ type CreateCertificateResponse struct {
|
||||||
|
|
||||||
type GetDomainConfigRequest struct {
|
type GetDomainConfigRequest struct {
|
||||||
Domains string `json:"domains"`
|
Domains string `json:"domains"`
|
||||||
Config string `json:"config"`
|
Config []string `json:"config"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetDomainConfigResponse struct {
|
type GetDomainConfigResponse struct {
|
||||||
|
|
Loading…
Reference in New Issue