切换864登录二维码到NewX并接入安全验证链接

This commit is contained in:
liuwei
2026-05-07 14:09:54 +08:00
parent 050e537ba3
commit cf6b676a56
13 changed files with 156 additions and 28 deletions

View File

@@ -542,12 +542,14 @@ class Robot:
provider_stage = str((payload or {}).get("provider_stage", "waiting_scan") or "waiting_scan").strip()
connection_ready = bool((payload or {}).get("connection_ready", False))
login_required = bool((payload or {}).get("login_required", True))
verification_url = str((payload or {}).get("verification_url", "") or "").strip()
expires_in = (payload or {}).get("expires_in")
expires_in = None if expires_in in (None, "") else max(0, int(expires_in))
current_record = {
"uuid": uuid_value,
"scan_url": scan_url,
"raw_url": raw_url,
"verification_url": verification_url,
"image_data": self._build_qr_image_data(scan_url),
"status": status,
"status_text": status_text,