|
@@ -177,7 +177,9 @@ public class ImportPaperService {
|
|
if (file.getName().endsWith(DOC_SUFFIX)) {
|
|
if (file.getName().endsWith(DOC_SUFFIX)) {
|
|
return processImportPaper(paper, user, file);
|
|
return processImportPaper(paper, user, file);
|
|
} else if (file.getName().endsWith(JSON_SUFFIX)) {
|
|
} else if (file.getName().endsWith(JSON_SUFFIX)) {
|
|
- return importPaperFromJsonService.processImportPaper(paper, user, file);
|
|
|
|
|
|
+ // return importPaperFromJsonService.processImportPaper(paper, user,
|
|
|
|
+ // file);
|
|
|
|
+ throw new PaperException("导入文件暂不支持.json类型");
|
|
} else {
|
|
} else {
|
|
throw new PaperException("导入文件只支持.docx和.json类型");
|
|
throw new PaperException("导入文件只支持.docx和.json类型");
|
|
}
|
|
}
|