forked from Cookies_Github_mirror/AquaDX
[O] Allow change maimai name to chinese characters in settings
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user