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