[core] Remove useless limitation on QR query, fix QR login for overseas users

This commit is contained in:
Him188 2023-04-04 21:02:20 +01:00
parent ecbb9b2672
commit c29fe9d244
No known key found for this signature in database
GPG Key ID: BA439CDDCF652375

View File

@ -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" }