添加歌曲名称

main
JH 10 months ago
parent 828d79afda
commit 56c7a71e0f

@ -436,6 +436,7 @@ public class CMSSongService {
if (upload > 0) { if (upload > 0) {
SongInfo song = new SongInfo(); SongInfo song = new SongInfo();
song.setId(id); song.setId(id);
song.setName(originalFilename.substring(0, originalFilename.lastIndexOf(Constants.DOT)));
song.setUrl(keySuffix); song.setUrl(keySuffix);
song.setSize(file.isEmpty() ? 0L : file.getSize()); song.setSize(file.isEmpty() ? 0L : file.getSize());
song.setDuration(CommonUtil.getSongDuration(file)); song.setDuration(CommonUtil.getSongDuration(file));

Loading…
Cancel
Save