Skip to content

Commit 3039ba8

Browse files
committed
feat 2.11.12
1 parent 1ddde9d commit 3039ba8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cos-nodejs-sdk-v5",
3-
"version": "2.11.11",
3+
"version": "2.11.12",
44
"description": "cos nodejs sdk v5",
55
"main": "index.js",
66
"types": "index.d.ts",

sdk/base.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3411,7 +3411,9 @@ function getAuthorizationAsync(params, callback) {
34113411
})();
34123412

34133413
var calcAuthByTmpKey = function () {
3414-
var KeyTime = StsData.StartTime && StsData.ExpiredTime ? StsData.StartTime + ';' + StsData.ExpiredTime : '';
3414+
var KeyTime = '';
3415+
if (StsData.StartTime && params.Expires) KeyTime = StsData.StartTime + ';' + (StsData.StartTime + params.Expires * 1);
3416+
else if (StsData.StartTime && StsData.ExpiredTime) KeyTime = StsData.StartTime + ';' + StsData.ExpiredTime;
34153417
var Authorization = util.getAuth({
34163418
SecretId: StsData.TmpSecretId,
34173419
SecretKey: StsData.TmpSecretKey,

0 commit comments

Comments
 (0)