1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-06-18 13:35:03 +08:00

client: fix fetch qrcode

This commit is contained in:
wdvxdr 2023-02-23 16:29:15 +08:00
parent af032dec96
commit dfd10f4405
2 changed files with 3 additions and 3 deletions

View File

@ -253,7 +253,7 @@ func decodeTransEmpResponse(c *QQClient, pkt *network.Packet) (any, error) {
}
sig := body.ReadBytesShort()
body.ReadUInt16()
m, err := tlv.NewDecoder(2, 2).DecodeRecordMap(reader.ReadAvailable())
m, err := tlv.NewDecoder(2, 2).DecodeRecordMap(body.ReadAvailable())
if err != nil {
return nil, err
}

View File

@ -21,8 +21,8 @@ func (t *Transport) packBody(req *Request, w *binary.Writer) {
pos := w.FillUInt32()
if req.Type == RequestTypeLogin {
w.WriteUInt32(uint32(req.SequenceID))
w.WriteUInt32((*t.Version).AppId)
w.WriteUInt32((*t.Version).SubAppId)
w.WriteUInt32(t.Version.AppId)
w.WriteUInt32(t.Version.SubAppId)
w.Write([]byte{0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00})
tgt := t.Sig.TGT
if len(tgt) == 0 || len(tgt) == 4 {