xiatian 4 éve
szülő
commit
0df3f088da

+ 1 - 1
themis-business/src/main/java/com/qmth/themis/business/service/impl/TEExamServiceImpl.java

@@ -459,7 +459,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
             throw new BusinessException("考试记录的学生Id和当前登录用户不一致");
         }
 
-        String filePath = "upload/" + sdf.format(new Date()) + "/" + uuid() + ".json";
+        String filePath = "upload/" + sdf.format(new Date()) + "/" + uuid() + "."+suffix;
         InputStream in = null;
         try {
             String fileMd5 = DigestUtils.md5Hex(file.getBytes());