Commit d95702b7 by 桂前礼

bug: [1029783] 【H5页面】没有显示编辑端设置的图书封面

parent 19944f6f
...@@ -1044,10 +1044,10 @@ public class ResourcePageBizImpl implements ResourcePageBiz { ...@@ -1044,10 +1044,10 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
// 更新图书封面 // 更新图书封面
ResourcePage page = resourcePageDao.getById(resourcePageId); ResourcePage page = resourcePageDao.getById(resourcePageId);
if (StrUtil.isNotBlank(updateResourcePageVO.getBookCover()) && Objects.nonNull(page) && Objects.nonNull(page.getBookGroupId())) { if (StrUtil.isNotBlank(updateResourcePageVO.getBookCover()) && Objects.nonNull(page)) {
BookGroupDTO bookGroupDto = bookGroupDao.getDTOById(page.getBookGroupId());
Long bookId; Long bookId;
if (Objects.nonNull(bookGroupDto)) { if (Objects.nonNull(page.getBookGroupId())) {
BookGroupDTO bookGroupDto = bookGroupDao.getDTOById(page.getBookGroupId());
bookId = bookGroupDto.getBookId(); bookId = bookGroupDto.getBookId();
} else { } else {
bookId = channelConsr.getBookId4SceneId(page.getSceneId()); bookId = channelConsr.getBookId4SceneId(page.getSceneId());
......
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