mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 14:50:43 +08:00
[core] Remove useless limitation on QR query, fix QR login for overseas users
This commit is contained in:
parent
ecbb9b2672
commit
c29fe9d244
@ -97,7 +97,7 @@ internal class QRCodeLoginProcessorImpl(
|
||||
sig: ByteArray
|
||||
): WtLogin.TransEmp.Response {
|
||||
logger.debug { "querying qrcode state." }
|
||||
val resp = handler.sendAndExpect(WtLogin.TransEmp.QueryQRCodeStatus(client, sig), attempts = 1, timeout = 500)
|
||||
val resp = handler.sendAndExpect(WtLogin.TransEmp.QueryQRCodeStatus(client, sig))
|
||||
check(
|
||||
resp is WtLogin.TransEmp.Response.QRCodeStatus || resp is WtLogin.TransEmp.Response.QRCodeConfirmed
|
||||
) { "Cannot query qrcode status, resp=$resp" }
|
||||
|
Loading…
Reference in New Issue
Block a user