@ -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);
@ -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 {