mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
fix first login.
This commit is contained in:
parent
9b7f533603
commit
c747c2a2ae
@ -88,8 +88,7 @@ func decodeLoginResponse(c *QQClient, _ uint16, payload []byte) (interface{}, er
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if t == 160 {
|
if t == 160 || t == 239 {
|
||||||
|
|
||||||
if t174, ok := m[0x174]; ok { // 短信验证
|
if t174, ok := m[0x174]; ok { // 短信验证
|
||||||
c.t104 = m[0x104]
|
c.t104 = m[0x104]
|
||||||
c.t174 = t174
|
c.t174 = t174
|
||||||
|
@ -57,7 +57,7 @@ func (c *QQClient) highwayUpload(ip uint32, port int, updKey, data []byte, cmdId
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 只是为了写的跟上面一样长(bushi,当然也应该是最快的玩法
|
// 只是为了写的跟上面一样长(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 := make([]byte, 512)[:0]
|
||||||
url = append(url, "http://"...)
|
url = append(url, "http://"...)
|
||||||
url = append(url, binary.UInt32ToIPV4Address(uint32(ip))...)
|
url = append(url, binary.UInt32ToIPV4Address(uint32(ip))...)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user