mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-05 03:23:50 +08:00
fix count error.
This commit is contained in:
parent
6e7abb00aa
commit
8ca54d6aac
@ -36,7 +36,7 @@ func (c *QQClient) buildLoginPacket() (uint16, []byte) {
|
|||||||
seq := c.nextSeq()
|
seq := c.nextSeq()
|
||||||
req := packets.BuildOicqRequestPacket(c.Uin, 0x0810, crypto.ECDH, c.RandomKey, func(w *binary.Writer) {
|
req := packets.BuildOicqRequestPacket(c.Uin, 0x0810, crypto.ECDH, c.RandomKey, func(w *binary.Writer) {
|
||||||
w.WriteUInt16(9)
|
w.WriteUInt16(9)
|
||||||
w.WriteUInt16(17)
|
w.WriteUInt16(0x17)
|
||||||
|
|
||||||
w.Write(tlv.T18(16, uint32(c.Uin)))
|
w.Write(tlv.T18(16, uint32(c.Uin)))
|
||||||
w.Write(tlv.T1(uint32(c.Uin), SystemDeviceInfo.IpAddress))
|
w.Write(tlv.T1(uint32(c.Uin), SystemDeviceInfo.IpAddress))
|
||||||
|
@ -57,7 +57,8 @@ func decodeLoginResponse(c *QQClient, _ uint16, payload []byte) (interface{}, er
|
|||||||
if m.Exists(0x192) { // slider, not supported yet
|
if m.Exists(0x192) { // slider, not supported yet
|
||||||
return LoginResponse{
|
return LoginResponse{
|
||||||
Success: false,
|
Success: false,
|
||||||
Error: UnknownLoginError,
|
VerifyUrl: string(m[0x192]),
|
||||||
|
Error: SliderNeededError,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
if m.Exists(0x165) { // image
|
if m.Exists(0x165) { // image
|
||||||
|
@ -255,6 +255,7 @@ const (
|
|||||||
SNSNeededError LoginError = 5
|
SNSNeededError LoginError = 5
|
||||||
TooManySNSRequestError LoginError = 6
|
TooManySNSRequestError LoginError = 6
|
||||||
SNSOrVerifyNeededError LoginError = 7
|
SNSOrVerifyNeededError LoginError = 7
|
||||||
|
SliderNeededError LoginError = 8
|
||||||
UnknownLoginError LoginError = -1
|
UnknownLoginError LoginError = -1
|
||||||
|
|
||||||
Owner MemberPermission = iota
|
Owner MemberPermission = iota
|
||||||
|
Loading…
x
Reference in New Issue
Block a user