fix:修复name过长无法导入问题

This commit is contained in:
fanxb 2023-12-02 18:40:43 +08:00
parent 5126e31867
commit c9156f12d1
3 changed files with 17 additions and 7 deletions

View File

@ -31,7 +31,16 @@
# 更新日志
## 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] 主页功能

View File

@ -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);

View File

@ -0,0 +1,2 @@
alter table bookmark
modify name varchar(2000) not null;