Skip to content

Commit

Permalink
update go
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzuochao committed Dec 11, 2020
1 parent 39b68e7 commit 7638470
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2020-12-11 Version: v0.0.9
- Fix Error.

2020-10-30 Version: v0.0.8
- Update mod.

Expand Down
15 changes: 9 additions & 6 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,17 +557,17 @@ func (client *Client) DoROARequest(action *string, version *string, protocol *st
}

if !tea.BoolValue(util.EqualString(authType, tea.String("Anonymous"))) {
accessKeyId, _err := client.Credential.GetAccessKeyId()
accessKeyId, _err := client.GetAccessKeyId()
if _err != nil {
return _result, _err
}

accessKeySecret, _err := client.Credential.GetAccessKeySecret()
accessKeySecret, _err := client.GetAccessKeySecret()
if _err != nil {
return _result, _err
}

securityToken, _err := client.Credential.GetSecurityToken()
securityToken, _err := client.GetSecurityToken()
if _err != nil {
return _result, _err
}
Expand Down Expand Up @@ -758,17 +758,17 @@ func (client *Client) DoROARequestWithForm(action *string, version *string, prot
}

if !tea.BoolValue(util.EqualString(authType, tea.String("Anonymous"))) {
accessKeyId, _err := client.Credential.GetAccessKeyId()
accessKeyId, _err := client.GetAccessKeyId()
if _err != nil {
return _result, _err
}

accessKeySecret, _err := client.Credential.GetAccessKeySecret()
accessKeySecret, _err := client.GetAccessKeySecret()
if _err != nil {
return _result, _err
}

securityToken, _err := client.Credential.GetSecurityToken()
securityToken, _err := client.GetSecurityToken()
if _err != nil {
return _result, _err
}
Expand Down Expand Up @@ -898,6 +898,7 @@ func (client *Client) GetUserAgent() (_result *string) {
*/
func (client *Client) GetAccessKeyId() (_result *string, _err error) {
if tea.BoolValue(util.IsUnset(client.Credential)) {
_result = tea.String("")
return _result, _err
}

Expand All @@ -916,6 +917,7 @@ func (client *Client) GetAccessKeyId() (_result *string, _err error) {
*/
func (client *Client) GetAccessKeySecret() (_result *string, _err error) {
if tea.BoolValue(util.IsUnset(client.Credential)) {
_result = tea.String("")
return _result, _err
}

Expand All @@ -934,6 +936,7 @@ func (client *Client) GetAccessKeySecret() (_result *string, _err error) {
*/
func (client *Client) GetSecurityToken() (_result *string, _err error) {
if tea.BoolValue(util.IsUnset(client.Credential)) {
_result = tea.String("")
return _result, _err
}

Expand Down

0 comments on commit 7638470

Please sign in to comment.