1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-05 03:23:50 +08:00

fix first login.

This commit is contained in:
Mrs4s 2020-10-15 20:28:29 +08:00
parent 9b7f533603
commit c747c2a2ae
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

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