|
@@ -471,7 +471,8 @@ public class ExtractConfigProviderServiceImpl implements ExtractConfigProviderSe
|
|
|
if(audioTimeConfig != null){
|
|
|
//2.1 取到题干,给a标签添加url
|
|
|
String quesBody = null;
|
|
|
- if(StringUtils.isNoneBlank(defaultQuestion.getMasterVersion().getBody())){
|
|
|
+ if(StringUtils.isNotBlank(defaultQuestion.getMasterVersion().getBody())){
|
|
|
+ //套题
|
|
|
quesBody = defaultQuestion.getMasterVersion().getBody();
|
|
|
defaultQuestion.getMasterVersion().setBody(buildBody(quesBody, audioTimeConfig.getPlayTime()));
|
|
|
}else {
|
|
@@ -488,6 +489,26 @@ public class ExtractConfigProviderServiceImpl implements ExtractConfigProviderSe
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ }else {
|
|
|
+ String quesBody = null;
|
|
|
+ if(StringUtils.isNotBlank(defaultQuestion.getMasterVersion().getBody())){
|
|
|
+ //套题
|
|
|
+ quesBody = defaultQuestion.getMasterVersion().getBody();
|
|
|
+ defaultQuestion.getMasterVersion().setBody(buildBody(quesBody, null));
|
|
|
+ }else {
|
|
|
+ DefaultQuestionUnit defaultQuestionUnit = (DefaultQuestionUnit) defaultQuestion.getMasterVersion().getQuestionUnitList().get(0);
|
|
|
+ quesBody = defaultQuestionUnit.getBody();
|
|
|
+ defaultQuestionUnit.setBody(buildBody(quesBody, null));
|
|
|
+ if(defaultQuestionUnit.getQuestionType() == QuestionType.SINGLE_CHOICE || defaultQuestionUnit.getQuestionType() == QuestionType.MULTIPLE_CHOICE){
|
|
|
+ List<DefaultQuestionOption> questionOptionList = (List<DefaultQuestionOption>) defaultQuestionUnit.getQuestionOptionList();
|
|
|
+ if(questionOptionList != null && questionOptionList.size()>0){
|
|
|
+ for(int i = 0;i<questionOptionList.size();i++){
|
|
|
+ DefaultQuestionOption defaultQuestionOption = questionOptionList.get(i);
|
|
|
+ defaultQuestionOption.setBody(buildBody(defaultQuestionOption.getBody(), null));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|