test #241
|
@ -184,6 +184,12 @@ class AudioContentService(
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val purchaseOption = if (request.themeId == 12L || request.themeId == 13L || request.themeId == 14L) {
|
||||||
|
PurchaseOption.BUY_ONLY
|
||||||
|
} else {
|
||||||
|
request.purchaseOption
|
||||||
|
}
|
||||||
|
|
||||||
// DB에 값 추가
|
// DB에 값 추가
|
||||||
val audioContent = AudioContent(
|
val audioContent = AudioContent(
|
||||||
title = request.title,
|
title = request.title,
|
||||||
|
@ -197,7 +203,7 @@ class AudioContentService(
|
||||||
limited = request.limited,
|
limited = request.limited,
|
||||||
remaining = request.limited,
|
remaining = request.limited,
|
||||||
isAdult = request.isAdult,
|
isAdult = request.isAdult,
|
||||||
purchaseOption = request.purchaseOption,
|
purchaseOption = purchaseOption,
|
||||||
isGeneratePreview = request.isGeneratePreview,
|
isGeneratePreview = request.isGeneratePreview,
|
||||||
isOnlyRental = isOnlyRental,
|
isOnlyRental = isOnlyRental,
|
||||||
isCommentAvailable = request.isCommentAvailable,
|
isCommentAvailable = request.isCommentAvailable,
|
||||||
|
@ -603,10 +609,10 @@ class AudioContentService(
|
||||||
) {
|
) {
|
||||||
val length = audioContent.detail.length
|
val length = audioContent.detail.length
|
||||||
|
|
||||||
if (length < 20) {
|
if (length < 60) {
|
||||||
"${audioContent.detail.take(length / 2)}..."
|
"${audioContent.detail.take(length / 2)}..."
|
||||||
} else {
|
} else {
|
||||||
"${audioContent.detail.take(10)}..."
|
"${audioContent.detail.take(30)}..."
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
audioContent.detail
|
audioContent.detail
|
||||||
|
|
Loading…
Reference in New Issue