mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-21 12:40:12 +08:00
try to fix Chinese Groupcard support
This commit is contained in:
parent
687a773e8e
commit
cdf8347c18
@ -305,7 +305,6 @@ object MiraiConsole {
|
||||
if (!CommandManager.runCommand(fullCommand)) {
|
||||
logger("未知指令 $fullCommand")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,9 +9,11 @@
|
||||
|
||||
package net.mamoe.mirai.qqandroid.network.protocol.data.jce
|
||||
|
||||
import kotlinx.io.core.toByteArray
|
||||
import kotlinx.serialization.SerialId
|
||||
import kotlinx.serialization.Serializable
|
||||
import net.mamoe.mirai.qqandroid.io.JceStruct
|
||||
import net.mamoe.mirai.qqandroid.network.protocol.packet.EMPTY_BYTE_ARRAY
|
||||
|
||||
@Serializable
|
||||
internal class ModifyGroupCardReq(
|
||||
|
@ -410,7 +410,7 @@ internal class TroopManagement {
|
||||
gender = 0,
|
||||
dwuin = member.id,
|
||||
dwFlag = 31,
|
||||
sName = newName.toUtf8Bytes().encodeToString(charset = CharsetGBK),
|
||||
sName = newName.toByteArray(CharsetUTF8).encodeToString(CharsetGBK),
|
||||
sPhone = "",
|
||||
sEmail = "",
|
||||
sRemark = ""
|
||||
|
Loading…
Reference in New Issue
Block a user