mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-05 03:23:50 +08:00
update error.
This commit is contained in:
parent
071d50aec7
commit
c2cd2cef0b
@ -92,7 +92,7 @@ func decodeLoginResponse(c *QQClient, _ uint16, payload []byte) (interface{}, er
|
|||||||
if t204, ok := m[0x204]; ok { // 同时支持扫码验证 ?
|
if t204, ok := m[0x204]; ok { // 同时支持扫码验证 ?
|
||||||
return LoginResponse{
|
return LoginResponse{
|
||||||
Success: false,
|
Success: false,
|
||||||
Error: SNSNeededError | UnsafeDeviceError,
|
Error: SNSOrVerifyNeededError,
|
||||||
VerifyUrl: string(t204),
|
VerifyUrl: string(t204),
|
||||||
SMSPhone: phone,
|
SMSPhone: phone,
|
||||||
ErrorMessage: string(m[0x17e]),
|
ErrorMessage: string(m[0x17e]),
|
||||||
|
@ -254,6 +254,7 @@ const (
|
|||||||
UnsafeDeviceError LoginError = 4
|
UnsafeDeviceError LoginError = 4
|
||||||
SNSNeededError LoginError = 5
|
SNSNeededError LoginError = 5
|
||||||
TooManySMSRequestError LoginError = 6
|
TooManySMSRequestError LoginError = 6
|
||||||
|
SNSOrVerifyNeededError LoginError = 7
|
||||||
UnknownLoginError LoginError = -1
|
UnknownLoginError LoginError = -1
|
||||||
|
|
||||||
Owner MemberPermission = iota
|
Owner MemberPermission = iota
|
||||||
|
Loading…
x
Reference in New Issue
Block a user