diff --git a/luoo_music/src/main/java/com/luoo/music/service/CMSSongService.java b/luoo_music/src/main/java/com/luoo/music/service/CMSSongService.java index 96d817e..2510a0b 100644 --- a/luoo_music/src/main/java/com/luoo/music/service/CMSSongService.java +++ b/luoo_music/src/main/java/com/luoo/music/service/CMSSongService.java @@ -436,6 +436,7 @@ public class CMSSongService { if (upload > 0) { SongInfo song = new SongInfo(); song.setId(id); + song.setName(originalFilename.substring(0, originalFilename.lastIndexOf(Constants.DOT))); song.setUrl(keySuffix); song.setSize(file.isEmpty() ? 0L : file.getSize()); song.setDuration(CommonUtil.getSongDuration(file));