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 c8f2eb5..96d817e 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 @@ -394,7 +394,7 @@ public class CMSSongService { s3Service.uploadText(Constants.BUCKET, key, lyric); List bySongId = journalSongDao.findBySongId(id); for (JournalSong item : bySongId) { - String format = String.format("%05d/%02d", item.getJournalNo(), item.getSongNo()); + String format = String.format("%05d/%02d", Integer.parseInt(item.getJournalNo()), item.getSongNo()); String destLyricSuffix = format + ".lyric"; String destLyric = Constants.MUSIC_KEY_PREFIX + destLyricSuffix; s3Service.copy(Constants.BUCKET, key, destLyric); 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 4ecb070..43d2960 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 @@ -40,7 +40,7 @@ public class S3Service { public void fromSongToMusic(List journalSongList) { for (JournalSong item : journalSongList) { String tempLyric = null; - String format = String.format("%05d/%02d", item.getJournalNo(), item.getSongNo()); + String format = String.format("%05d/%02d", Integer.parseInt(item.getJournalNo()), item.getSongNo()); if (StringUtils.isNotBlank(item.getUrl())) { String srcUrl = item.getUrl(); String destUrlSuffix = format + srcUrl.substring(srcUrl.lastIndexOf(Constants.DOT));