diff --git a/README.md b/README.md index 26e41fb..21229e1 100644 --- a/README.md +++ b/README.md @@ -22,16 +22,25 @@ 帮助文档:[点击跳转](https://blog.fleyx.com/blog/detail/20220329/) -- 支持从chrome,edge,firefox等浏览器导入书签数据。 -- 支持从OneEnv导入书签数据 +- 支持从 chrome,edge,firefox 等浏览器导入书签数据。 +- 支持从 OneEnv 导入书签数据 - 树型多级目录支持 -- 支持导出标准html书签文件 +- 支持导出标准 html 书签文件 - 强大的检索功能,支持拼音检索 - 支持浏览器插件,安装插件以后可右键添加书签 # 更新日志 -## 2023-08-13 +## 1.4.1 + +- 修复书签名过长无法导入问题 + +## 1.4 + +- 优化首图加载逻辑 +- 支持 OneEnv 备份文件导入 + +## 1.3 ![pic](https://s3.fleyx.com/picbed/2023/08/Snipaste_2023-08-13_15-01-20.png) @@ -39,7 +48,6 @@ 位置:右上角个人中心-管理搜索引擎 - # TODO - [x] 主页功能 diff --git a/bookMarkService/common/src/main/java/com/fanxb/bookmark/common/entity/po/Bookmark.java b/bookMarkService/common/src/main/java/com/fanxb/bookmark/common/entity/po/Bookmark.java index c656876..3bef9bc 100644 --- a/bookMarkService/common/src/main/java/com/fanxb/bookmark/common/entity/po/Bookmark.java +++ b/bookMarkService/common/src/main/java/com/fanxb/bookmark/common/entity/po/Bookmark.java @@ -53,7 +53,7 @@ public class Bookmark { this.setUserId(userId); this.setPath(path); this.setType(FOLDER_TYPE); - this.setName(name); + this.setName(name.length() > 2000 ? name.substring(0, 1999) : name); this.setAddTime(addTime); this.setSort(sort); this.setCreateTime(System.currentTimeMillis()); @@ -64,7 +64,7 @@ public class Bookmark { this.setUserId(userId); this.setPath(path); this.setType(BOOKMARK_TYPE); - this.setName(name); + this.setName(name.length() > 2000 ? name.substring(0, 1999) : name); this.setUrl(url); this.setIcon(icon); this.setSort(sort); diff --git a/bookMarkService/web/src/main/resources/db/migration/V25__bookmarkname长度加长.sql b/bookMarkService/web/src/main/resources/db/migration/V25__bookmarkname长度加长.sql new file mode 100644 index 0000000..b1740d3 --- /dev/null +++ b/bookMarkService/web/src/main/resources/db/migration/V25__bookmarkname长度加长.sql @@ -0,0 +1,2 @@ +alter table bookmark + modify name varchar(2000) not null; \ No newline at end of file