콘텐츠 구매 - 소장만 추가 #234

Merged
klaus merged 7 commits from test into main 2024-11-08 12:40:30 +00:00
1 changed files with 14 additions and 2 deletions
Showing only changes of commit 5820117c1a - Show all commits

View File

@ -577,6 +577,18 @@ class AudioContentService(
false false
} }
val isOnlyRental = if (audioContent.purchaseOption == PurchaseOption.RENT_ONLY) {
true
} else {
audioContent.isOnlyRental
}
val purchaseOption = if (audioContent.isOnlyRental) {
PurchaseOption.RENT_ONLY
} else {
audioContent.purchaseOption
}
return GetAudioContentDetailResponse( return GetAudioContentDetailResponse(
contentId = audioContent.id!!, contentId = audioContent.id!!,
title = audioContent.title, title = audioContent.title,
@ -594,9 +606,9 @@ class AudioContentService(
isActivePreview = audioContent.isGeneratePreview, isActivePreview = audioContent.isGeneratePreview,
isAdult = audioContent.isAdult, isAdult = audioContent.isAdult,
isMosaic = audioContent.isAdult && member.auth == null, isMosaic = audioContent.isAdult && member.auth == null,
isOnlyRental = audioContent.isOnlyRental, isOnlyRental = isOnlyRental,
existOrdered = isExistsAudioContent, existOrdered = isExistsAudioContent,
purchaseOption = audioContent.purchaseOption, purchaseOption = purchaseOption,
orderType = orderType, orderType = orderType,
remainingTime = remainingTime, remainingTime = remainingTime,
creatorOtherContentList = creatorOtherContentList, creatorOtherContentList = creatorOtherContentList,