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:
parent
af032dec96
commit
dfd10f4405
@ -253,7 +253,7 @@ func decodeTransEmpResponse(c *QQClient, pkt *network.Packet) (any, error) {
|
|||||||
}
|
}
|
||||||
sig := body.ReadBytesShort()
|
sig := body.ReadBytesShort()
|
||||||
body.ReadUInt16()
|
body.ReadUInt16()
|
||||||
m, err := tlv.NewDecoder(2, 2).DecodeRecordMap(reader.ReadAvailable())
|
m, err := tlv.NewDecoder(2, 2).DecodeRecordMap(body.ReadAvailable())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -21,8 +21,8 @@ func (t *Transport) packBody(req *Request, w *binary.Writer) {
|
|||||||
pos := w.FillUInt32()
|
pos := w.FillUInt32()
|
||||||
if req.Type == RequestTypeLogin {
|
if req.Type == RequestTypeLogin {
|
||||||
w.WriteUInt32(uint32(req.SequenceID))
|
w.WriteUInt32(uint32(req.SequenceID))
|
||||||
w.WriteUInt32((*t.Version).AppId)
|
w.WriteUInt32(t.Version.AppId)
|
||||||
w.WriteUInt32((*t.Version).SubAppId)
|
w.WriteUInt32(t.Version.SubAppId)
|
||||||
w.Write([]byte{0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00})
|
w.Write([]byte{0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00})
|
||||||
tgt := t.Sig.TGT
|
tgt := t.Sig.TGT
|
||||||
if len(tgt) == 0 || len(tgt) == 4 {
|
if len(tgt) == 0 || len(tgt) == 4 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user