Browse Source

Allow interaction

master
Menci 7 years ago
parent
commit
77ecd81b90
  1. 1
      modules/problem.js

1
modules/problem.js

@ -502,7 +502,6 @@ app.post('/problem/:id/manage', app.multer.fields([{ name: 'testdata', maxCount:
if (!problem.file_io) {
throw new ErrorMessage('交互题目必须使用文件 IO。');
}
throw new ErrorMessage('暂不支持该题目类型。');
}
if (problem.type === 'submit-answer' && req.body.type !== 'submit-answer' || problem.type !== 'submit-answer' && req.body.type === 'submit-answer') {

Loading…
Cancel
Save