Skip to content

Commit bbddd09

Browse files
authored
Merge pull request #187 from pchange/get_new_uptoken_config
Get new uptoken config
2 parents b8facd3 + 83ce2d5 commit bbddd09

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

dist/qiniu.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* GitHub: http://github.com/qiniu/js-sdk
88
*
9-
* Date: 2016-10-11
9+
* Date: 2016-10-13
1010
*/
1111

1212
/*global plupload ,mOxie*/
@@ -660,7 +660,7 @@ function QiniuJsSDK() {
660660
};
661661

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

0 commit comments

Comments
 (0)