From abffc680ccfde5c3783766752d8332fc40f8b2a7 Mon Sep 17 00:00:00 2001 From: JH <935007339@qq.com> Date: Tue, 30 Jan 2024 08:22:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=9F=E5=88=8A=E5=9B=BE=E7=89=87=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E8=87=B3music=E8=B7=AF=E5=BE=84=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/luoo/music/service/CMSJournalService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/luoo_music/src/main/java/com/luoo/music/service/CMSJournalService.java b/luoo_music/src/main/java/com/luoo/music/service/CMSJournalService.java index 8a14c9d..02ea6c1 100644 --- a/luoo_music/src/main/java/com/luoo/music/service/CMSJournalService.java +++ b/luoo_music/src/main/java/com/luoo/music/service/CMSJournalService.java @@ -94,7 +94,7 @@ public class CMSJournalService { response.setId(item.getId()); response.setJournalNo(item.getJournalNo()); response.setTitle(item.getTitle()); - response.setImage(Constants.IMAGE_RESOURCE_PREFIX + item.getImage()); + response.setImage(Constants.MUSIC_RESOURCE_PREFIX + item.getImage()); response.setCreateTime(item.getCreateTime().format(Constants.formatter)); response.setState(item.getState()); response.setIsPublish(item.getIsPublish()); @@ -232,7 +232,7 @@ public class CMSJournalService { String image = param.getImage(); String suffix = image.substring(image.lastIndexOf(Constants.DOT)); String destKeySuffix = String.format("%05d/00%s", Integer.parseInt(param.getJournalNo()), suffix); - String destKey = Constants.IMAGE_KEY_PREFIX + destKeySuffix; + String destKey = Constants.MUSIC_RESOURCE_PREFIX + destKeySuffix; int copy = s3Service.copy(Constants.BUCKET, srcKey, destKey); if (copy > 0) { return destKeySuffix; @@ -374,7 +374,7 @@ public class CMSJournalService { srcKey = param.getImage().substring(param.getImage().indexOf(Constants.TEMP_KEY_PREFIX)); } else { if (!oldJournal.getJournalNo().equals(param.getJournalNo())) { - srcKey = param.getImage().substring(param.getImage().indexOf(Constants.IMAGE_KEY_PREFIX)); + srcKey = param.getImage().substring(param.getImage().indexOf(Constants.MUSIC_KEY_PREFIX)); } } if (StringUtils.isNotBlank(srcKey)) {