소스 검색

Merge remote-tracking branch 'origin/dev' into dev

wangliang 4 년 전
부모
커밋
54ae7038d4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      themis-business/src/main/java/com/qmth/themis/business/service/impl/TEExamServiceImpl.java

+ 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());