mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
fix username error.
This commit is contained in:
parent
cc2ce301a3
commit
644c0bfacc
@ -122,7 +122,7 @@ func readT125(data []byte) (openId, openKey []byte) {
|
|||||||
func readT11A(data []byte) (nick string, age, gender uint16) {
|
func readT11A(data []byte) (nick string, age, gender uint16) {
|
||||||
reader := binary.NewReader(data)
|
reader := binary.NewReader(data)
|
||||||
reader.ReadUInt16()
|
reader.ReadUInt16()
|
||||||
age = reader.ReadUInt16()
|
age = uint16(reader.ReadByte())
|
||||||
gender = uint16(reader.ReadByte())
|
gender = uint16(reader.ReadByte())
|
||||||
nick = reader.ReadStringLimit(int(reader.ReadByte()) & 0xff)
|
nick = reader.ReadStringLimit(int(reader.ReadByte()) & 0xff)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user