【修改】浏览器去掉添加文件后缀,改为前端输入

This commit is contained in:
YOHO\20373
2025-06-21 17:08:08 +08:00
parent 2669397cd6
commit 32592c6f06
2 changed files with 8 additions and 8 deletions

View File

@@ -50,14 +50,14 @@ public class BrowserServericeImpl implements IBrowserServerice {
List<ExamQuestionAnswer> answerList = examQuestionAnswerMapper.selectExamQuestionAnswerByQuId(question.getQuId());
//判断如果类型为1为添加到文件夹的html后缀加 .html
for (ExamQuestionAnswer answer : answerList) {
if ("添加到文件夹".equals(answer.getContentIn())) {
String fileName = answer.getContent();
if (!fileName.endsWith(".html")) {
answer.setContent(fileName + ".html");
}
}
}
// for (ExamQuestionAnswer answer : answerList) {
// if ("添加到文件夹".equals(answer.getContentIn())) {
// String fileName = answer.getContent();
// if (!fileName.endsWith(".html")) {
// answer.setContent(fileName + ".html");
// }
// }
// }