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

update error.

This commit is contained in:
Mrs4s 2020-10-07 20:12:43 +08:00
parent 071d50aec7
commit c2cd2cef0b
2 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,7 @@ func decodeLoginResponse(c *QQClient, _ uint16, payload []byte) (interface{}, er
if t204, ok := m[0x204]; ok { // 同时支持扫码验证 ?
return LoginResponse{
Success: false,
Error: SNSNeededError | UnsafeDeviceError,
Error: SNSOrVerifyNeededError,
VerifyUrl: string(t204),
SMSPhone: phone,
ErrorMessage: string(m[0x17e]),

View File

@ -254,6 +254,7 @@ const (
UnsafeDeviceError LoginError = 4
SNSNeededError LoginError = 5
TooManySMSRequestError LoginError = 6
SNSOrVerifyNeededError LoginError = 7
UnknownLoginError LoginError = -1
Owner MemberPermission = iota