Accept Merge Request #73: (hyc -> master)

Merge Request: 【修改】判分题型名

Created By: @华允传
Accepted By: @华允传
URL: https://g-iswv8783.coding.net/p/education/d/pengchen-exam-java/git/merge/73?initial=true
This commit is contained in:
华允传
2025-05-21 20:04:46 +08:00
committed by Coding

View File

@@ -290,7 +290,7 @@ public class AutoToolsServiceImpl implements AutoToolsService{
break;
}
//windows文件处理
if (one_file.getName().equals("stu")) {
if (file_one.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,15 +299,16 @@ public class AutoToolsServiceImpl implements AutoToolsService{
}
//浏览器操作
// if ("浏览器网络题".equals(examQuestion.getCourseName()+examQuestion.getSubjectName())){
if (one_file.getName().equals("edge")) {
if (file_one.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);
score += browse_score;
System.out.println(browse_score+"浏览器操作得分");
break;
}
if (one_file.getName().equals("mysql")) {
if (file_one.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);