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.
2 parents 2b74090 + 61920a6 commit cd89b40Copy full SHA for cd89b40
qiniu/zone.js
@@ -19,7 +19,9 @@ exports.up_host = function (uptoken, conf){
19
var tokenPolicy = uptoken.toString().split(":")[2];
20
var tokenPolicyStr = new Buffer(tokenPolicy, 'base64').toString();
21
var json_tokenPolicyStr = JSON.parse(tokenPolicyStr);
22
- var bucket = json_tokenPolicyStr.scope;
+
23
+ var scope = json_tokenPolicyStr.scope;
24
+ var bucket = scope.toString().split(":")[0];
25
26
// bucket 相同,上传域名仍在过期时间内
27
if((new Date().getTime() < conf.EXPIRE) && bucket == conf.BUCKET){
0 commit comments