test #290

Merged
klaus merged 6 commits from test into main 2025-03-19 07:51:26 +00:00
1 changed files with 18 additions and 8 deletions
Showing only changes of commit 1998a95c35 - Show all commits

View File

@ -165,14 +165,24 @@ class AudioContentMainTabContentService(
val dailyRankingEndDate = dailyRankingStartDate val dailyRankingEndDate = dailyRankingStartDate
.plusDays(1) .plusDays(1)
return rankingService.getContentRanking( var loopCount = 0
var contentCount: Int
var contentList: List<GetAudioContentRankingItem>
do {
contentList = rankingService.getContentRanking(
memberId = memberId, memberId = memberId,
isAdult = isAdult, isAdult = isAdult,
contentType = contentType, contentType = contentType,
startDate = dailyRankingStartDate, startDate = dailyRankingStartDate.minusDays(loopCount * 5L),
endDate = dailyRankingEndDate, endDate = dailyRankingEndDate,
sortType = sortType sortType = sortType
) )
contentCount = contentList.size
loopCount++
} while (contentCount < 5)
return contentList
} }
fun getNewContentByTheme( fun getNewContentByTheme(