mirror of
https://github.com/woodchen-ink/certimate.git
synced 2025-07-19 09:51:55 +08:00
修复白山云API 400209错误
This commit is contained in:
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
|
||||
getDomainConfigReq := &bssdk.GetDomainConfigRequest{
|
||||
Domains: d.config.Domain,
|
||||
Config: "https",
|
||||
Config: []string{"https"},
|
||||
}
|
||||
getDomainConfigResp, err := d.sdkClient.GetDomainConfig(getDomainConfigReq)
|
||||
if err != nil {
|
||||
|
2
internal/pkg/vendors/baishan-sdk/models.go
vendored
2
internal/pkg/vendors/baishan-sdk/models.go
vendored
@ -31,7 +31,7 @@ type CreateCertificateResponse struct {
|
||||
|
||||
type GetDomainConfigRequest struct {
|
||||
Domains string `json:"domains"`
|
||||
Config string `json:"config"`
|
||||
Config []string `json:"config"`
|
||||
}
|
||||
|
||||
type GetDomainConfigResponse struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user