From fcc7004e529a8fdccdf4446630f13dbb83e056fa Mon Sep 17 00:00:00 2001 From: Menci Date: Mon, 3 Jul 2017 09:37:00 +0800 Subject: [PATCH] Remove debug code --- models/file.js | 2 +- modules/problem.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/models/file.js b/models/file.js index 85597b7..a503178 100644 --- a/models/file.js +++ b/models/file.js @@ -67,7 +67,7 @@ class File extends Model { }); let p7zip = new (require('node-7z')), zipFile = await tmp.tmpName() + '.zip'; - console.log(await p7zip.add(zipFile, filenames)); + await p7zip.add(zipFile, filenames); await fs.removeAsync(dir.path); diff --git a/modules/problem.js b/modules/problem.js index 5e41a63..9961334 100644 --- a/modules/problem.js +++ b/modules/problem.js @@ -574,7 +574,6 @@ app.post('/problem/:id/submit', app.multer.fields([{ name: 'answer', maxCount: 1 try { path = await File.zipFiles(JSON.parse(req.body.answer_by_editor)); } catch (e) { - console.log(e); throw new ErrorMessage('无法解析提交数据。'); } } else {