From dbe3de79b942841b1ea0d647a961ba93a27a5bd2 Mon Sep 17 00:00:00 2001 From: "YOHO\\20373" <2037305722@qq.com> Date: Wed, 21 May 2025 20:17:02 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E5=88=A4?= =?UTF-8?q?=E5=88=86=E8=BF=9B=E5=85=A5=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../judgement/service/auto_tools/AutoToolsServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/auto_tools/AutoToolsServiceImpl.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/auto_tools/AutoToolsServiceImpl.java index dd55dc04..668d4f28 100644 --- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/auto_tools/AutoToolsServiceImpl.java +++ b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/auto_tools/AutoToolsServiceImpl.java @@ -290,7 +290,7 @@ public class AutoToolsServiceImpl implements AutoToolsService{ break; } //windows文件处理 - if (one_file.getName().equals("文件处理")) { + if (one_file.getName().split("\\.")[0].equals("文件处理")) { File win_file = new File(one_file.getPath()); double win_file_score = fileServerice.run_file_point(20.0,win_file, examQuestion); score += win_file_score; @@ -299,7 +299,7 @@ public class AutoToolsServiceImpl implements AutoToolsService{ } //浏览器操作 // if ("浏览器网络题".equals(examQuestion.getCourseName()+examQuestion.getSubjectName())){ - if (one_file.getName().equals("网络题")) { + if (one_file.getName().split("\\.")[0].equals("网络题")) { System.out.println(one_file); File edge_file = new File(one_file.getPath()); double browse_score= browserServerice.Judgement(20.0,edge_file,examQuestion); @@ -308,7 +308,7 @@ public class AutoToolsServiceImpl implements AutoToolsService{ break; } - if (one_file.getName().equals("程序设计")) { + if (one_file.getName().split("\\.")[0].equals("程序设计")) { System.out.println(one_file); File mysql_file = new File(one_file.getPath()); double judgement = mysqlServerice.Judgement(20.0,mysql_file, examQuestion);