修复附件管理名称超长问题

This commit is contained in:
TinyAnts 2022-12-06 09:40:00 +08:00
parent 85ba64cd2f
commit a22fe53275
1 changed files with 1 additions and 1 deletions

View File

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