From a22fe532752d72f4ee156ec5f558cb36598cd0aa Mon Sep 17 00:00:00 2001 From: TinyAnts Date: Tue, 6 Dec 2022 09:40:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=99=84=E4=BB=B6=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=90=8D=E7=A7=B0=E8=B6=85=E9=95=BF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/mdd/admin/service/impl/AlbumsServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/like-admin/src/main/java/com/mdd/admin/service/impl/AlbumsServiceImpl.java b/server/like-admin/src/main/java/com/mdd/admin/service/impl/AlbumsServiceImpl.java index a539c715..96de8fc1 100644 --- a/server/like-admin/src/main/java/com/mdd/admin/service/impl/AlbumsServiceImpl.java +++ b/server/like-admin/src/main/java/com/mdd/admin/service/impl/AlbumsServiceImpl.java @@ -161,7 +161,7 @@ public class AlbumsServiceImpl implements IAlbumsService { album.setAid(Integer.parseInt(params.get("aid") == null ? "0" : params.get("aid"))); album.setUid(Integer.parseInt(params.get("uid") == null ? "0" : params.get("uid"))); album.setType(Integer.parseInt(params.get("type"))); - album.setName(params.get("name")); + album.setName(params.get("name").substring(0, 99)); album.setExt(params.get("ext")); album.setUri(params.get("url")); album.setSize(Long.parseLong(params.get("size")));