提交 1aef45e3 编写于 作者: C CodFrm

服务器版本判断错误bug修复

上级 4f1c6c02
......@@ -9,14 +9,22 @@ module.exports = {
},
injection: '',
hotversion: {
v2_10: 2.10,
v2_10: 2.101,
v2_08: 2.083,
v2_07: 2.071,
v2_06: 2.06,
},
getHotVersion: function (ver) {
let dealver = 'v' + ('' + ver || this.version).replace('.', '_');
let dealver = 'v' + pushZero(ver || this.version).replace('.', '_');
hotversion = this.hotversion[dealver] || this.version;
return hotversion;
}
}
\ No newline at end of file
}
function pushZero(num) {
num = "" + num;
for (; num.length < 4;) {
num = num + "0";
}
return num;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册