Skip to content

Commit

Permalink
refactor:icon使用同步获取
Browse files Browse the repository at this point in the history
  • Loading branch information
FleyX committed Mar 29, 2022
1 parent 5a2f3da commit bc4364e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ public Bookmark addOne(Bookmark bookmark) {
bookmark.setUserId(userId);
bookmark.setCreateTime(System.currentTimeMillis());
bookmark.setAddTime(bookmark.getCreateTime());
bookmark.setIcon(getIconBase64(bookmark.getUrl()));
//文件夹和书签都建立搜索key
pinYinService.changeBookmark(bookmark);
bookmarkDao.insertOne(bookmark);
userApi.versionPlus(userId);
ThreadPoolUtil.execute(() -> bookmarkDao.updateIcon(bookmark.getBookmarkId(), getIconBase64(bookmark.getUrl())));
return bookmark;
}

Expand Down

0 comments on commit bc4364e

Please sign in to comment.