完善自动注册代理和状态恢复

This commit is contained in:
yml2213
2026-07-06 02:58:17 +08:00
parent db4ca78280
commit 72e7947a39
7 changed files with 223 additions and 19 deletions
+2 -1
View File
@@ -458,10 +458,11 @@ def change_huya_password_with_sms_line(
wait_seconds: float = 180,
poll_interval: float = 5,
ignore_codes: set[str] | None = None,
proxies: Mapping[str, str] | None = None,
stop_event: threading.Event | None = None,
) -> HuyaChangePasswordResult:
"""使用同一手机号接码链接完成改密短信验证。"""
changer = HuyaPasswordChanger(uid=uid, cookie=cookie)
changer = HuyaPasswordChanger(uid=uid, cookie=cookie, proxies=proxies)
sent_at = datetime.now()
code_result = changer.send_code()
if not code_result.success or not code_result.session_data: