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:
parent
3cd432face
commit
cc0279f22e
@ -85,6 +85,15 @@ func decodeLoginResponse(c *QQClient, _ uint16, payload []byte) (interface{}, er
|
||||
c.t104 = m[0x104]
|
||||
c.t174 = t174
|
||||
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{
|
||||
Success: false,
|
||||
Error: SMSNeededError,
|
||||
|
Loading…
x
Reference in New Issue
Block a user