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))...)