mirror of https://github.com/hykilpikonna/AquaDX
[O] Allow change maimai name to chinese characters in settings
parent
b28a1986c9
commit
996632ac73
|
@ -111,7 +111,7 @@ class Maimai2(
|
|||
val newNameFull = toFullWidth(newName)
|
||||
us.cardByName(u.username) { card ->
|
||||
val user = userDataRepo.findByCard(card) ?: (404 - "User not found")
|
||||
settableFields["userName"]?.invoke(user, newNameFull)
|
||||
user.userName = newNameFull
|
||||
userDataRepo.save(user)
|
||||
}
|
||||
mapOf("newName" to newNameFull)
|
||||
|
|
Loading…
Reference in New Issue