From 559df6c7b8133b386d773da9ed8265b1c4826d2c Mon Sep 17 00:00:00 2001 From: Klaus Date: Tue, 26 Nov 2024 21:31:58 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EB=93=B1?= =?UTF-8?q?=EB=A1=9D=20-=20=ED=85=8C=EB=A7=88=EA=B0=80=20=EB=AA=A8?= =?UTF-8?q?=EB=8B=9D=EC=BD=9C,=20=EC=95=8C=EB=9E=8C,=20=EC=8A=AC=EB=A6=BD?= =?UTF-8?q?=EC=BD=9C=EC=9D=B8=20=EA=B2=BD=EC=9A=B0=205=EC=BA=94=20?= =?UTF-8?q?=EC=9D=B4=EC=83=81=EC=9D=98=20=EC=9C=A0=EB=A3=8C=EC=BD=98?= =?UTF-8?q?=ED=85=90=EC=B8=A0=EB=A1=9C=EB=A7=8C=20=EB=93=B1=EB=A1=9D?= =?UTF-8?q?=EC=9D=B4=20=EA=B0=80=EB=8A=A5=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kr/co/vividnext/sodalive/content/AudioContentService.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentService.kt index e55b998..d971e56 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentService.kt @@ -168,6 +168,10 @@ class AudioContentService( val theme = themeQueryRepository.findThemeByIdAndActive(id = request.themeId) ?: throw SodaException("잘못된 테마입니다. 다시 선택해 주세요.") + if ((request.themeId == 12L || request.themeId == 13L || request.themeId == 14L) && request.price < 5) { + throw SodaException("알람, 모닝콜, 슬립콜 테마의 콘텐츠는 5캔 이상의 유료콘텐츠로 등록이 가능합니다.") + } + if (request.price in 1..4) throw SodaException("콘텐츠의 최소금액은 5캔 입니다.") val isOnlyRental = if (request.limited != null && request.limited > 0) { -- 2.40.1