[F] Rival may lead to unable to login the game

This commit is contained in:
Clansty
2024-08-07 19:46:35 +08:00
parent 7ee4c14fae
commit c11bb3be59
2 changed files with 2 additions and 2 deletions

View File

@@ -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()