opti: rm console log

This commit is contained in:
suxiaoxin 2018-01-09 19:49:55 +08:00
parent 28a5c0f75e
commit 3b7645646e
6 changed files with 0 additions and 14 deletions

View File

@ -791,7 +791,6 @@ class interfaceController extends baseController {
const users = this.arrUnique(projectMenbers, starUsers);
const usersInfo = await this.userModel.findByUids(users)
const emails = usersInfo.map(item => item.email).join(',');
console.log('emails', emails);
try {
yapi.commons.sendMail({

View File

@ -133,7 +133,6 @@ class userController extends baseController {
const { email, password } = ctx.request.body;
const username = email.split(/\@/g)[0]
const isValid = await ldap.ldapQuery(email, password);
console.log('isVaild', isValid);
let login = await this.handleThirdLogin(email, username);
if (login === true) {
let userInst = yapi.getInst(userModel); //创建user实体

View File

@ -186,14 +186,6 @@ class projectModel extends baseModel {
})
.limit(10);
}
download(id) {
console.log('models in download');
// return this.model.find({
// name: new RegExp(id, 'ig')
// })
// .limit(10);
}
}
module.exports = projectModel;

View File

@ -7,7 +7,6 @@ exports.ldapQuery = (username, password) => {
return new Promise((resolve, reject) => {
const { ldapLogin } = yapi.WEBCONFIG;
console.log('login', ldapLogin);
// 使用ldapjs库创建一个LDAP客户端
const client = ldap.createClient({

View File

@ -21,7 +21,6 @@ function addPluginRouter(config) {
createAction(router, "/api", config.controller, config.action, routerPath, method, true);
}
function websocket(app) {
console.log('load websocket...')
createAction(router, "/api", interfaceController, "solveConflict", "/interface/solve_conflict", "get")
yapi.emitHookSync('add_ws_router', addPluginRouter);
@ -29,7 +28,6 @@ function websocket(app) {
app.ws.use(router.routes())
app.ws.use(router.allowedMethods());
app.ws.use(function (ctx, next) {
console.log(1111)
return ctx.websocket.send(JSON.stringify({
errcode: 404,
errmsg: 'No Fount.'

View File

@ -13,7 +13,6 @@ const WEBROOT_LOG = path.join(WEBROOT_RUNTIME, 'log');
const WEBCONFIG = config;
fs.ensureDirSync(WEBROOT_LOG);
console.log('mail', WEBCONFIG.mail)
if (WEBCONFIG.mail && WEBCONFIG.mail.enable) {