Preserve login routes across rotation and keep rejected migrations read-only

This commit is contained in:
Codex
2026-10-11 19:15:05 +08:00
parent 915241a2fd
commit ab4e4a4f79
6 changed files with 68 additions and 12 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ class AuthService:
raise ValueError("请输入学信网账号和密码")
if self.browser_cancel:
self.browser_cancel.set()
with self.check_lock:
with self.check_lock, self.transport.router.hold_route():
response = self.transport.request("GET", LOGIN_URL)
soup = BeautifulSoup(response.text, "html.parser")
form = {node.get("name"): node.get("value", "") for node in soup.select("input[type=hidden][name]")}