整理 - 删除不必要注释

This commit is contained in:
suwings 2018-04-13 09:57:55 +08:00
parent fcb66cf8c8
commit 403832c315
3 changed files with 1 additions and 9 deletions

View File

@ -18,16 +18,10 @@ ftpServerInterface.createFTPServer({
if (!realName || !serverName) return false;
let user = userModel.userCenter().get(realName);
//if (serverModel.ServerManager().isExist(serverName) && permission.isCanServer(realName, serverName)) {
let dataModel = serverModel.ServerManager().getServer(serverName).dataModel || null;
if (dataModel) return dataModel.cwd;
//}
// connected.close();
//return null;
// return process.cwd() + '/' + connected.username;
},
pasvPortRangeStart: 1025,
pasvPortRangeEnd: 1050,

View File

@ -34,9 +34,6 @@ module.exports.needLogin = (req, res, trueCallBack, falseCallBack) => {
return false;
}
// module.exports.wsNeedLogin = (ws) => {
// }
const counter = require('../core/counter');
module.exports.isMaster = (wsSession, notPermssionCounter) => {

View File

@ -33,6 +33,7 @@ app.post('/', function (req, res) {
var baseR = require('./controller/function');
var authR = require('./controller/auth');
// Not need
// process.on("uncaughtException", function (err) {
// console.log('UncaughtException 机制错误报告:', err);
// });