From c747c2a2ae2e706d389b360ad6ee07c9095d0619 Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Thu, 15 Oct 2020 20:28:29 +0800 Subject: [PATCH] fix first login. --- client/decoders.go | 3 +-- client/highway.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/decoders.go b/client/decoders.go index 104c8775..a3943b07 100644 --- a/client/decoders.go +++ b/client/decoders.go @@ -88,8 +88,7 @@ func decodeLoginResponse(c *QQClient, _ uint16, payload []byte) (interface{}, er }, nil } - if t == 160 { - + if t == 160 || t == 239 { if t174, ok := m[0x174]; ok { // 短信验证 c.t104 = m[0x104] c.t174 = t174 diff --git a/client/highway.go b/client/highway.go index fe55ff15..5da91be8 100644 --- a/client/highway.go +++ b/client/highway.go @@ -57,7 +57,7 @@ func (c *QQClient) highwayUpload(ip uint32, port int, updKey, data []byte, cmdId } // 只是为了写的跟上面一样长(bushi,当然也应该是最快的玩法 -func (c *QQClient) uploadGroupPtt(ip, port int32, updKey, fileKey, data, md5 []byte, codec int64) error { +func (c *QQClient) uploadGroupPtt(ip, port int32, updKey, fileKey, data, md5 []byte) error { url := make([]byte, 512)[:0] url = append(url, "http://"...) url = append(url, binary.UInt32ToIPV4Address(uint32(ip))...)