瀏覽代碼

修改bug

tags/v1.1.0^2
chenjiandong 1 年之前
父節點
當前提交
b872ff525b
共有 1 個檔案被更改,包括 7 行新增7 行删除
  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 查看文件

@@ -134,15 +134,15 @@ public class IndexServiceImpl implements IndexService {
}
List<QuestionListDto> questionListDtoList = questionMapper.getIndexQuestion(getQuestionListDto);
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;
}


}

Loading…
取消
儲存