Commit be7fe7b6 by 桂前礼

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

parent a7ea74f7
...@@ -437,8 +437,12 @@ public class BookBizImpl implements BookBiz { ...@@ -437,8 +437,12 @@ public class BookBizImpl implements BookBiz {
esBookAndAdviserBiz.updateBookAndAdviserToES(Collections.singletonList(book.getBookId())); esBookAndAdviserBiz.updateBookAndAdviserToES(Collections.singletonList(book.getBookId()));
checkIsUpdateCoverImgAndSendTopic(bookDto, book.getCoverImg()); checkIsUpdateCoverImgAndSendTopic(bookDto, book.getCoverImg());
// 清除redis中数据 // 清除redis中数据
bookCache.clearRedisByBook(bookDto.getBookId(), bookDto.getIsbn(), bookDto.getSerialNumber()); // bookCache.clearRedisByBook(bookDto.getBookId(), bookDto.getIsbn(), bookDto.getSerialNumber());
bookCache.clearCache4BookBaseInfo(bookDto.getBookId()); BookDto bookToRedis = bookCache.getBookToRedis(bookDto.getBookId());
bookToRedis.setCoverImg(book.getCoverImg());
bookToRedis.setLastModifiedUser(book.getLastModifiedUser());
bookCache.setBookToRedis(bookToRedis);
bookCache.setBookToRedisByIsbn(bookToRedis);
} }
/** /**
......
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