mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-08 10:17:27 +08:00
[F] Rival may lead to unable to login the game
This commit is contained in:
@@ -127,7 +127,7 @@ class Maimai2(
|
|||||||
user = repos.userData.findByCardExtId(myCard.extId).orElse(null) ?: (404 - "User not found")
|
user = repos.userData.findByCardExtId(myCard.extId).orElse(null) ?: (404 - "User not found")
|
||||||
propertyKey = "favorite_rival"
|
propertyKey = "favorite_rival"
|
||||||
}
|
}
|
||||||
val myRivalList = myRival.propertyValue.split(',').toMutableSet()
|
val myRivalList = myRival.propertyValue.split(',').filter { it.isNotEmpty() }.toMutableSet()
|
||||||
|
|
||||||
if (isAdd && myRivalList.size >= 4) {
|
if (isAdd && myRivalList.size >= 4) {
|
||||||
(400 - "Rival list is full")
|
(400 - "Rival list is full")
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class GetUserFavoriteItemHandler(val repos: Mai2Repos) : BaseHandler {
|
|||||||
else -> Optional.empty()
|
else -> Optional.empty()
|
||||||
}()?.let { fav ->
|
}()?.let { fav ->
|
||||||
val v = fav.propertyValue
|
val v = fav.propertyValue
|
||||||
if (v.isNotBlank()) v.split(",").dropLastWhile { it.isEmpty() }.mapIndexed { i, record ->
|
if (v.isNotBlank()) v.split(",").filter { it.isNotEmpty() }.mapIndexed { i, record ->
|
||||||
mapOf("id" to record.toInt(), "orderId" to i) }
|
mapOf("id" to record.toInt(), "orderId" to i) }
|
||||||
else null
|
else null
|
||||||
} ?: emptyList()
|
} ?: emptyList()
|
||||||
|
|||||||
Reference in New Issue
Block a user