1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00

support: multi verify.

This commit is contained in:
Mrs4s 2020-10-05 23:43:06 +08:00
parent 3cd432face
commit cc0279f22e

View File

@ -85,6 +85,15 @@ func decodeLoginResponse(c *QQClient, _ uint16, payload []byte) (interface{}, er
c.t104 = m[0x104] c.t104 = m[0x104]
c.t174 = t174 c.t174 = t174
c.t402 = m[0x402] c.t402 = m[0x402]
if t204, ok := m[0x204]; ok { // 同时支持扫码验证 ?
return LoginResponse{
Success: false,
Error: SMSNeededError | UnsafeDeviceError,
VerifyUrl: string(t204),
SMSPhone: string(m[0x178][4:]),
ErrorMessage: string(m[0x17e]),
}, nil
}
return LoginResponse{ return LoginResponse{
Success: false, Success: false,
Error: SMSNeededError, Error: SMSNeededError,