新增 - 测试项目临时代码

This commit is contained in:
suwings 2018-05-30 13:15:13 +08:00
parent ee35856879
commit cb321aaf7f

8
app.js
View File

@ -245,6 +245,14 @@ app.use('/fs', require('./onlinefs/controller/function'));
if (MCSERVER.localProperty.ftp_is_allow)
require('./ftpd/index'); //执行ftp逻辑
setTimeout(() => {
let arg2 = process.argv[2];
if (arg2 == '--debug') {
MCSERVER.infoLog("测试完毕 | 退出...");
process.exit(0);
}
}, 10000);
});