Skip to content

Commit afd7ac3

Browse files
authored
Merge pull request #230 from tencentyun/feature_jojoliang_8743121d
更新预签名
2 parents f4d20ac + 5ccad76 commit afd7ac3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

object.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ func (s *ObjectService) GetPresignedURL(ctx context.Context, httpMethod, name, a
140140
}
141141
var authTime *AuthTime
142142
if opt != nil {
143-
if opt, ok := opt.(*presignedURLTestingOptions); ok {
144-
authTime = opt.authTime
143+
if popt, ok := opt.(*presignedURLTestingOptions); ok {
144+
authTime = popt.authTime
145145
}
146146
if popt, ok := opt.(*PresignedURLOptions); ok {
147147
if popt.Query != nil {
@@ -213,8 +213,8 @@ func (s *ObjectService) GetPresignedURL2(ctx context.Context, httpMethod, name s
213213
var authTime *AuthTime
214214
mark := "?"
215215
if opt != nil {
216-
if opt, ok := opt.(*presignedURLTestingOptions); ok {
217-
authTime = opt.authTime
216+
if popt, ok := opt.(*presignedURLTestingOptions); ok {
217+
authTime = popt.authTime
218218
}
219219
if popt, ok := opt.(*PresignedURLOptions); ok {
220220
if popt.Query != nil {

0 commit comments

Comments
 (0)