1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

fix count error.

This commit is contained in:
Mrs4s 2020-10-08 15:09:11 +08:00
parent 6e7abb00aa
commit 8ca54d6aac
3 changed files with 5 additions and 3 deletions

View File

@ -36,7 +36,7 @@ func (c *QQClient) buildLoginPacket() (uint16, []byte) {
seq := c.nextSeq()
req := packets.BuildOicqRequestPacket(c.Uin, 0x0810, crypto.ECDH, c.RandomKey, func(w *binary.Writer) {
w.WriteUInt16(9)
w.WriteUInt16(17)
w.WriteUInt16(0x17)
w.Write(tlv.T18(16, uint32(c.Uin)))
w.Write(tlv.T1(uint32(c.Uin), SystemDeviceInfo.IpAddress))

View File

@ -56,8 +56,9 @@ func decodeLoginResponse(c *QQClient, _ uint16, payload []byte) (interface{}, er
c.t104, _ = m[0x104]
if m.Exists(0x192) { // slider, not supported yet
return LoginResponse{
Success: false,
Error: UnknownLoginError,
Success: false,
VerifyUrl: string(m[0x192]),
Error: SliderNeededError,
}, nil
}
if m.Exists(0x165) { // image

View File

@ -255,6 +255,7 @@ const (
SNSNeededError LoginError = 5
TooManySNSRequestError LoginError = 6
SNSOrVerifyNeededError LoginError = 7
SliderNeededError LoginError = 8
UnknownLoginError LoginError = -1
Owner MemberPermission = iota