Commit 17afcce7 authored by 刘基明's avatar 刘基明

主题接口修改

parent fbb3bb27
...@@ -85,6 +85,7 @@ public class ThemeManager { ...@@ -85,6 +85,7 @@ public class ThemeManager {
@Autowired @Autowired
private FeignClientForCourse feignClientForCourse; private FeignClientForCourse feignClientForCourse;
@Autowired
private OSSFileService ossFileService; private OSSFileService ossFileService;
...@@ -302,6 +303,9 @@ public class ThemeManager { ...@@ -302,6 +303,9 @@ public class ThemeManager {
//单图,根据id传入url //单图,根据id传入url
String imgId = themeContentQo.getValue(); String imgId = themeContentQo.getValue();
FileRecordEntity fileEntity = ossFileService.queryById(imgId); FileRecordEntity fileEntity = ossFileService.queryById(imgId);
if (fileEntity==null) {
throw new BizException("图片未找到,id:"+imgId);
}
themeContentQo.setValue(CommunityConstant.OSS_PREFIX_URL+fileEntity.getFileOssKey()); themeContentQo.setValue(CommunityConstant.OSS_PREFIX_URL+fileEntity.getFileOssKey());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment