mirror of https://github.com/hykilpikonna/AquaDX
[F] Fix recentNBMusicList return
parent
250d92d225
commit
4c3ed1d0da
|
@ -30,11 +30,13 @@ fun ChusanController.chusanInit() {
|
|||
"GetUserSymbolChatSetting" { """{"userId":"${data["userId"]}","length":"0","symbolChatInfoList":[]}""" }
|
||||
|
||||
// Net battle data
|
||||
"GetUserNetBattleData" {
|
||||
val misc = db.userMisc.findSingleByUser_Card_ExtId(uid)()
|
||||
"GetUserNetBattleData" api@ {
|
||||
val u = db.userData.findByCard_ExtId(uid)() ?: return@api null
|
||||
val misc = db.userMisc.findSingleByUser(u)()
|
||||
val recent = db.netBattleLog.findTop20ByUserOrderByIdDesc(u)
|
||||
mapOf("userId" to uid, "userNetBattleData" to mapOf(
|
||||
"recentNBSelectMusicList" to (misc?.recentNbSelect ?: empty),
|
||||
"recentNBMusicList" to (misc?.recentNbMusic ?: empty),
|
||||
"recentNBMusicList" to recent.map { it.toDict() },
|
||||
))
|
||||
}
|
||||
"GetUserNetBattleRankingInfo" { """{"userId":"${data["userId"]}","length":"0","userNetBattleRankingInfoList":{}}""" }
|
||||
|
|
|
@ -127,7 +127,9 @@ interface Chu3UserCMissionProgressRepo : Chu3UserLinked<UserCMissionProgress> {
|
|||
fun findByUser_Card_ExtIdAndMissionIdAndOrder(extId: Long, missionId: Int, order: Int): Optional<UserCMissionProgress>
|
||||
}
|
||||
|
||||
interface Chu3NetBattleLogRepo : Chu3UserLinked<Chu3NetBattleLog>
|
||||
interface Chu3NetBattleLogRepo : Chu3UserLinked<Chu3NetBattleLog> {
|
||||
fun findTop20ByUserOrderByIdDesc(user: Chu3UserData): List<Chu3NetBattleLog>
|
||||
}
|
||||
|
||||
interface Chu3UserMiscRepo : Chu3UserLinked<Chu3UserMisc>
|
||||
|
||||
|
|
Loading…
Reference in New Issue