Skip to content

Commit 9d4645f

Browse files
author
wonderswang
committed
fix: 优化 getobjectURL 同步返回时若不存在 AuthData 导致 queryParams未带上的问题
1 parent de519f9 commit 9d4645f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk/base.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3110,6 +3110,8 @@ function getObjectUrl(params, callback) {
31103110
syncUrl += '?' + AuthData.Authorization +
31113111
(AuthData.SecurityToken ? '&x-cos-security-token=' + AuthData.SecurityToken : '');
31123112
queryParamsStr && (syncUrl += '&' + queryParamsStr);
3113+
} else{
3114+
queryParamsStr && (syncUrl += '?' + queryParamsStr);
31133115
}
31143116
return syncUrl;
31153117
}

0 commit comments

Comments
 (0)