From 16b4ed0bda7357eabc9817b66b25c5e570652026 Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Thu, 2 Apr 2020 15:40:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=96=B0qclo?= =?UTF-8?q?ud=20sdk=E5=BC=95=E5=87=BA=E7=9A=84=E4=B8=8D=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/multicloud/qcloud/qcloud.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/multicloud/qcloud/qcloud.go b/pkg/multicloud/qcloud/qcloud.go index 0a53a2f7f3..91b44f9411 100644 --- a/pkg/multicloud/qcloud/qcloud.go +++ b/pkg/multicloud/qcloud/qcloud.go @@ -324,7 +324,9 @@ func _jsonRequest(client *common.Client, domain string, version string, apiName if region, ok := params["Region"]; ok { client = client.Init(region) } - client.WithProfile(profile.NewClientProfile()) + _profile := profile.NewClientProfile() + _profile.SignMethod = common.SHA256 + client.WithProfile(_profile) service := strings.Split(domain, ".")[0] req.Init().WithApiInfo(service, version, apiName) req.SetDomain(domain) @@ -349,7 +351,9 @@ func _phpJsonRequest(client *common.Client, resp qcloudResponse, domain string, if region, ok := params["Region"]; ok { client = client.Init(region) } - client.WithProfile(profile.NewClientProfile()) + _profile := profile.NewClientProfile() + _profile.SignMethod = common.SHA256 + client.WithProfile(_profile) service := strings.Split(domain, ".")[0] req.Init().WithApiInfo(service, version, apiName) req.SetDomain(domain)