mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
fix qrcode status.
This commit is contained in:
parent
450a75c351
commit
505aae133d
@ -270,6 +270,9 @@ func decodeTransEmpResponse(c *QQClient, _ *incomingPacketInfo, payload []byte)
|
||||
if code == 0x35 {
|
||||
return &QRCodeLoginResponse{State: QRCodeWaitingForConfirm}, nil
|
||||
}
|
||||
if code == 0x36 {
|
||||
return &QRCodeLoginResponse{State: QRCodeCanceled}, nil
|
||||
}
|
||||
if code == 0x11 {
|
||||
return &QRCodeLoginResponse{State: QRCodeTimeout}, nil
|
||||
}
|
||||
|
@ -293,6 +293,7 @@ const (
|
||||
QRCodeWaitingForConfirm QRCodeLoginState = 3
|
||||
QRCodeTimeout QRCodeLoginState = 4
|
||||
QRCodeConfirmed QRCodeLoginState = 5
|
||||
QRCodeCanceled QRCodeLoginState = 6
|
||||
|
||||
Owner MemberPermission = iota
|
||||
Administrator
|
||||
|
Loading…
x
Reference in New Issue
Block a user