Skip to content

Commit 734c6ca

Browse files
authored
get new token when settings.
tokenInfo 是设置了 op.uptoken_url 的情况下,处理的,所以在 uptoken_func 更新 token 的时候会有 bug 。不过我没改。
1 parent 3cdad62 commit 734c6ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qiniu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ function QiniuJsSDK() {
660660
};
661661

662662
var getUptoken = function(file) {
663-
if (!that.token || that.tokenInfo.isExpired()) {
663+
if (op.get_new_uptoken || !that.token || that.tokenInfo.isExpired()) {
664664
return getNewUpToken(file);
665665
} else {
666666
return that.token;

0 commit comments

Comments
 (0)