We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5a70f3 commit 8fc4743Copy full SHA for 8fc4743
sdk/util.js
@@ -46,10 +46,10 @@ var getAuth = function (opt) {
46
var now = parseInt(new Date().getTime() / 1000) - 1;
47
var expired = now; // now + ';' + (now + 60) + ''; // 签名过期时间为当前 + 3600s
48
49
- if (opt.expires) {
50
- expired += (opt.expires * 1);
51
- } else {
+ if (opt.expires === undefined) {
52
expired += 3600;
+ } else {
+ expired += (opt.expires * 1) || 0;
53
}
54
55
// 要用到的 Authorization 参数列表
0 commit comments