Browse Source

Remove debug code

pull/6/head
Menci 7 years ago
parent
commit
fcc7004e52
  1. 2
      models/file.js
  2. 1
      modules/problem.js

2
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);

1
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 {

Loading…
Cancel
Save