test #240

Merged
klaus merged 13 commits from test into main 2024-11-23 17:59:24 +00:00
1 changed files with 17 additions and 1 deletions
Showing only changes of commit 84804d32ad - Show all commits

View File

@ -596,10 +596,26 @@ class AudioContentService(
audioContent.purchaseOption
}
val contentDetail = if (
audioContent.price >= 50 &&
!isExistsAudioContent &&
!audioContent.isFullDetailVisible
) {
val length = audioContent.detail.length
if (length < 20) {
"${audioContent.detail.take(length / 2)}..."
} else {
"${audioContent.detail.take(10)}..."
}
} else {
audioContent.detail
}
return GetAudioContentDetailResponse(
contentId = audioContent.id!!,
title = audioContent.title,
detail = audioContent.detail,
detail = contentDetail,
coverImageUrl = "$coverImageHost/${audioContent.coverImage!!}",
contentUrl = audioContentUrl,
themeStr = audioContent.theme!!.theme,