Browse Source

Merge branch 'develop' of gitadmin/tuoheng_lc into release

tags/v1.1.0^2
gitadmin 1 year ago
parent
commit
5e89952197
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/IndexServiceImpl.java

+ 7
- 7
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/IndexServiceImpl.java View File

} }
List<QuestionListDto> questionListDtoList = questionMapper.getIndexQuestion(getQuestionListDto); List<QuestionListDto> questionListDtoList = questionMapper.getIndexQuestion(getQuestionListDto);
for(QuestionListDto questionListDto : questionListDtoList){ for(QuestionListDto questionListDto : questionListDtoList){
String[] imgHanders = questionListDto.getHandlerImage().split(",");
for (int i = 0; i < imgHanders.length; i++) {
imgHanders[i] = CommonConfig.imageURL + imgHanders[i];
if(questionListDto.getHandlerImage() != null){
String[] imgHanders = questionListDto.getHandlerImage().split(",");
for (int i = 0; i < imgHanders.length; i++) {
imgHanders[i] = CommonConfig.imageURL + imgHanders[i];
}
String handerImg = StringUtils.join(imgHanders, ",");
questionListDto.setHandlerImage(handerImg);
} }
String handerImg = StringUtils.join(imgHanders, ",");
questionListDto.setHandlerImage(handerImg);
} }
return questionListDtoList; return questionListDtoList;
} }


} }

Loading…
Cancel
Save