mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-05 04:17:26 +08:00
[F] Fix recommend select music
This commit is contained in:
@@ -269,8 +269,11 @@ fun Maimai2ServletController.initApis() {
|
||||
"userRecommendRateMusicIdList" to empty // TODO
|
||||
) }
|
||||
|
||||
"GetUserRecommendSelectMusic" { mapOf(
|
||||
"userId" to uid,
|
||||
"userRecommendSelectionMusicIdList" to (net.recommendedMusic[uid] ?: empty)
|
||||
) }
|
||||
"GetUserRecommendSelectMusic" {
|
||||
val user = db.userData.findByCard_ExtId(uid)() ?: (404 - "User not found")
|
||||
mapOf(
|
||||
"userId" to uid,
|
||||
"userRecommendSelectionMusicIdList" to (net.recommendedMusic[user.id] ?: empty)
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user