mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-13 00:47:27 +08:00
[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)
|
val newNameFull = toFullWidth(newName)
|
||||||
us.cardByName(u.username) { card ->
|
us.cardByName(u.username) { card ->
|
||||||
val user = userDataRepo.findByCard(card) ?: (404 - "User not found")
|
val user = userDataRepo.findByCard(card) ?: (404 - "User not found")
|
||||||
settableFields["userName"]?.invoke(user, newNameFull)
|
user.userName = newNameFull
|
||||||
userDataRepo.save(user)
|
userDataRepo.save(user)
|
||||||
}
|
}
|
||||||
mapOf("newName" to newNameFull)
|
mapOf("newName" to newNameFull)
|
||||||
|
|||||||
Reference in New Issue
Block a user