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 {