Przeglądaj źródła

导入bug修改

weiwenhai 6 lat temu
rodzic
commit
9f5a0b4687

+ 1 - 1
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/ImportPaperService.java

@@ -1939,7 +1939,7 @@ public class ImportPaperService {
 		String[] quesAnwser = question.getQuesAnswer().split("##");
 		//如果有答案,进行判断
 		if(quesAnwser.length>0){
-			String str = quesAnwser[0].replaceAll("<p>", "").replaceAll("</p>", "").replaceAll("<span>", "").replaceAll("</span>", "");
+			String str = quesAnwser[0].replaceAll("<p>", "").replaceAll("</p>", "").replaceAll("<span>", "").replaceAll("</span>", "").replace("&nbsp;", "");
 			if(quesAnwser.length == 1 && !StringUtils.isBlank(str) || quesAnwser.length >1){
 				//判断题干空格和答案空格是否相等
 				if((quesBody.length -1) != quesAnwser.length){