【修改】ps蒙版考点,ps删除考点文件

This commit is contained in:
huababa1
2025-08-27 19:41:54 +08:00
parent 9a460b05d1
commit d9687bb729
2 changed files with 419 additions and 116 deletions

View File

@@ -1026,7 +1026,7 @@ public class ExamGetPointsServiceImpl implements ExamGetPointsService{
public PsViewDto get_ps_point(PointsVo pointsVo) throws RuntimeException {
String timestamp = String.valueOf(System.currentTimeMillis());
String baseDir = "ps\\" + timestamp;
File folder = new File(baseDir);
// 下载学生文件和答案文件
String sthPath = downloadStudentFile(pointsVo.getShucaiPath(), baseDir);
String answerPath = downloadStudentFile(pointsVo.getAnswerPath(), baseDir);
@@ -1081,7 +1081,7 @@ public class ExamGetPointsServiceImpl implements ExamGetPointsService{
psViewDto.setPointList(pointList);
psViewDto.setAnswerList(answerlist);
deleteFolder(folder);
return psViewDto;
} catch (IOException e) {
e.printStackTrace(); // 打印异常堆栈