Skip to content

Commit

Permalink
Merge pull request #230 from tencentyun/feature_jojoliang_8743121d
Browse files Browse the repository at this point in the history
更新预签名
  • Loading branch information
agin719 committed Jan 9, 2024
2 parents f4d20ac + 5ccad76 commit afd7ac3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions object.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ func (s *ObjectService) GetPresignedURL(ctx context.Context, httpMethod, name, a
}
var authTime *AuthTime
if opt != nil {
if opt, ok := opt.(*presignedURLTestingOptions); ok {
authTime = opt.authTime
if popt, ok := opt.(*presignedURLTestingOptions); ok {
authTime = popt.authTime
}
if popt, ok := opt.(*PresignedURLOptions); ok {
if popt.Query != nil {
Expand Down Expand Up @@ -213,8 +213,8 @@ func (s *ObjectService) GetPresignedURL2(ctx context.Context, httpMethod, name s
var authTime *AuthTime
mark := "?"
if opt != nil {
if opt, ok := opt.(*presignedURLTestingOptions); ok {
authTime = opt.authTime
if popt, ok := opt.(*presignedURLTestingOptions); ok {
authTime = popt.authTime
}
if popt, ok := opt.(*PresignedURLOptions); ok {
if popt.Query != nil {
Expand Down

0 comments on commit afd7ac3

Please sign in to comment.