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 c99e4e9 commit e87513bCopy full SHA for e87513b
qiniu/zone.js
@@ -3,6 +3,14 @@ var request = require('sync-request');
3
//conf 为全局变量
4
exports.up_host = function (uptoken, conf){
5
6
+ var version = process.versions;
7
+ var num = version.node.split(".")[0];
8
+
9
+ // node 版本号低于 1.0.0, 使用默认域名上传,可以在conf中改下上传域名
10
+ if(num < 1 ){
11
+ conf.AUTOZONE = false;
12
+ }
13
14
if(!conf.AUTOZONE){
15
return;
16
}
0 commit comments