From 5fbe76ebd528c10de8be11fd778a6dd8e66bb3b8 Mon Sep 17 00:00:00 2001 From: JH <935007339@qq.com> Date: Sun, 28 Jan 2024 18:42:47 +0800 Subject: [PATCH] update --- .../src/main/java/com/luoo/music/service/S3Service.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/luoo_music/src/main/java/com/luoo/music/service/S3Service.java b/luoo_music/src/main/java/com/luoo/music/service/S3Service.java index 43d2960..fbc1d0b 100644 --- a/luoo_music/src/main/java/com/luoo/music/service/S3Service.java +++ b/luoo_music/src/main/java/com/luoo/music/service/S3Service.java @@ -42,7 +42,7 @@ public class S3Service { String tempLyric = null; String format = String.format("%05d/%02d", Integer.parseInt(item.getJournalNo()), item.getSongNo()); if (StringUtils.isNotBlank(item.getUrl())) { - String srcUrl = item.getUrl(); + String srcUrl = Constants.SONG_KEY_PREFIX + item.getUrl(); String destUrlSuffix = format + srcUrl.substring(srcUrl.lastIndexOf(Constants.DOT)); String destUrl = Constants.MUSIC_KEY_PREFIX + destUrlSuffix; item.setUrl(destUrlSuffix); @@ -50,18 +50,18 @@ public class S3Service { tempLyric = srcUrl; } if (StringUtils.isNotBlank(item.getImage())) { - String srcImage = item.getImage(); + String srcImage = Constants.SONG_KEY_PREFIX + item.getImage(); String destImageSuffix = format + srcImage.substring(srcImage.lastIndexOf(Constants.DOT)); String destImage = Constants.MUSIC_KEY_PREFIX + destImageSuffix; item.setImage(destImageSuffix); copy(Constants.BUCKET, srcImage, destImage); } - if (StringUtils.isNotBlank(tempLyric)) { + /*if (StringUtils.isNotBlank(tempLyric)) { String srcLyric = tempLyric.substring(0, tempLyric.lastIndexOf(Constants.DOT)) + ".lyric"; String destLyricSuffix = format + srcLyric.substring(srcLyric.lastIndexOf(Constants.DOT)); String destLyric = Constants.MUSIC_KEY_PREFIX + destLyricSuffix; copy(Constants.BUCKET, srcLyric, destLyric); - } + }*/ } }