mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +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()
|
||||
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))
|
||||
|
@ -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
|
||||
|
@ -255,6 +255,7 @@ const (
|
||||
SNSNeededError LoginError = 5
|
||||
TooManySNSRequestError LoginError = 6
|
||||
SNSOrVerifyNeededError LoginError = 7
|
||||
SliderNeededError LoginError = 8
|
||||
UnknownLoginError LoginError = -1
|
||||
|
||||
Owner MemberPermission = iota
|
||||
|
Loading…
x
Reference in New Issue
Block a user