mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-08 15:17:26 +08:00
[F] Fix maimai get rating crash for some users
This commit is contained in:
@@ -57,7 +57,7 @@ class GetUserRatingHandler(
|
|||||||
return json
|
return json
|
||||||
}
|
}
|
||||||
|
|
||||||
fun loadRateData(value: String) = value.split(",").map {
|
fun loadRateData(value: String) = value.split(",").filter { it.isNotBlank() }.map {
|
||||||
val (musicId, level, beforeRating, afterRating) = it.split(":")
|
val (musicId, level, beforeRating, afterRating) = it.split(":")
|
||||||
Mai2UserRate(musicId.toInt(), level.toInt(), beforeRating.toInt(), afterRating.toInt())
|
Mai2UserRate(musicId.toInt(), level.toInt(), beforeRating.toInt(), afterRating.toInt())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user