From 8d84c5aec3e1aa0bdb9a131ec13116c4bacc9510 Mon Sep 17 00:00:00 2001 From: JH <935007339@qq.com> Date: Wed, 7 Feb 2024 00:27:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/luoo/music/service/CMSJournalService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 9344bf0..483bd44 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 @@ -324,7 +324,9 @@ public class CMSJournalService { response.setTitle(journal.getTitle()); response.setTag(journalTagDao.findTagsByJournalId(id)); response.setUserId(journal.getUserId()); - response.setImage(Constants.MUSIC_RESOURCE_PREFIX + journal.getImage()); + if (StringUtils.isNotBlank(journal.getImage())) { + response.setImage(Constants.MUSIC_RESOURCE_PREFIX + journal.getImage()); + } response.setSongs(journalSongInfo(journal.getJournalNo())); response.setContent(journal.getContent()); return Result.success(response);