mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-26 04:22:38 +00:00
[F] Rival may lead to unable to login the game
This commit is contained in:
parent
7ee4c14fae
commit
c11bb3be59
@ -127,7 +127,7 @@ class Maimai2(
|
||||
user = repos.userData.findByCardExtId(myCard.extId).orElse(null) ?: (404 - "User not found")
|
||||
propertyKey = "favorite_rival"
|
||||
}
|
||||
val myRivalList = myRival.propertyValue.split(',').toMutableSet()
|
||||
val myRivalList = myRival.propertyValue.split(',').filter { it.isNotEmpty() }.toMutableSet()
|
||||
|
||||
if (isAdd && myRivalList.size >= 4) {
|
||||
(400 - "Rival list is full")
|
||||
|
||||
@ -18,7 +18,7 @@ class GetUserFavoriteItemHandler(val repos: Mai2Repos) : BaseHandler {
|
||||
else -> Optional.empty()
|
||||
}()?.let { fav ->
|
||||
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) }
|
||||
else null
|
||||
} ?: emptyList()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user