“我的域”功能

This commit is contained in:
undefined committed 2020-07-14 19:02:19 +08:00
1 parent d4e849a133
commit eaed0e84f5
11 files changed
+122 -27

No files matched your search

+1 -1
View File
@@ -361,7 +361,7 @@ class ProblemDataUploadHandler extends ProblemManageHandler {
async post({ domainId }) {
let md5;
if (!this.request.files.file) throw new BadRequestError();
await problem.setTestdata(
this.pdoc = await problem.setTestdata(
domainId, this.pdoc.docId, this.request.files.file.path,
);
if (this.pdoc.data && typeof this.pdoc.data === 'object') {