【修改】ps对号错号写入文件变成问号

This commit is contained in:
huababa1
2025-07-04 19:24:32 +08:00
parent ef92d7ae97
commit 48f585227c

View File

@@ -141,11 +141,11 @@ public class PsServiceImpl implements PsService{
if (isCorrect) {
judgementStr = HtmlAppender.appendHtmlLine(judgementStr, currentPath + "" + correctValue + "】【✅】");
appendToFile(answerLogPath, currentPath + "" + correctValue + "【✅");
appendToFile(answerLogPath, currentPath + "" + correctValue + ""+"【√");
result.setScore(result.getScore() + Double.parseDouble(item.getRate()));
} else {
judgementStr = HtmlAppender.appendHtmlLine(judgementStr, currentPath + "" + correctValue + "】【❌】");
appendToFile(answerLogPath, currentPath + "" + correctValue + "【❌");
judgementStr = HtmlAppender.appendHtmlLine(judgementStr, currentPath + "" + correctValue + ""+"【❌】");
appendToFile(answerLogPath, currentPath + "" + correctValue + ""+"【×");
}
result.setText(judgementStr);