【修改】浏览器去掉添加文件后缀,改为前端输入
This commit is contained in:
@@ -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");
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user