mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
fix: temporary fix qidian protocol panic
This commit is contained in:
parent
27c591e3cb
commit
4164d656d8
@ -143,6 +143,9 @@ func (c *QQClient) bigDataRequest(subCmd uint32, req proto.Message) ([]byte, err
|
||||
}
|
||||
defer func() { _ = rsp.Body.Close() }()
|
||||
rspBody, _ := io.ReadAll(rsp.Body)
|
||||
if len(rspBody) == 0 {
|
||||
return nil, errors.Wrap(err, "request error")
|
||||
}
|
||||
r := binary.NewReader(rspBody)
|
||||
r.ReadByte()
|
||||
l1 := int(r.ReadInt32())
|
||||
|
Loading…
x
Reference in New Issue
Block a user