From 56c7a71e0fcb711980dbe4d15b8a235bed750b69 Mon Sep 17 00:00:00 2001 From: JH <935007339@qq.com> Date: Sun, 28 Jan 2024 11:08:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=AD=8C=E6=9B=B2=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/luoo/music/service/CMSSongService.java | 1 + 1 file changed, 1 insertion(+) 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));