Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: lxf746/any-auto-register
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.12
Choose a base ref
...
head repository: lxf746/any-auto-register
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.13
Choose a head ref
  • 1 commit
  • 4 files changed
  • 2 contributors

Commits on May 1, 2026

  1. fix: 修 Windows GBK 编码崩溃 + Solver 重试限制与状态查询

    Windows 中文版默认 stdout 编码是 GBK,碰到 ✗ ✓ 等非 GBK 字符
    (lifecycle / tasks 多处使用)会抛 UnicodeEncodeError 让 backend
    进程崩溃 ("致命错误: 'gbk' codec can't encode character '\\u2717'")。
    
    main.py 顶层多重保险:
    - 设置 PYTHONUTF8=1 让子进程也用 UTF-8
    - stdout/stderr.reconfigure(encoding="utf-8", errors="replace")
    - io.TextIOWrapper 兜底(PyInstaller 某些版本 reconfigure 不可用)
    
    solver_manager 重构:
    - _consecutive_failures 计数 + MAX 阈值,避免 Camoufox 装不上时
      无限重试刷屏
    - 子进程 stderr 用 PIPE 而不是 DEVNULL,启动失败时把 stderr 输出
      打到日志,方便用户/我排查
    - get_status() 返回 last_error / stopped_retrying,前端能展示
    - restart() 同步重启接口:stop -> 等端口释放 -> start,重置失败计数
    - _kill_by_port 跨平台清理残留进程(Docker/外部启动场景)
    
    infrastructure/system_runtime.py 同步用新的 get_status / restart 接口。
    
    electron/build-backend.sh 补一批 --hidden-import (uvicorn 各子模块、
    turnstile_solver 模块、quart) 让本地构建脚本和 release.yml 行为一致。
    
    Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
    fanlixing and claude committed May 1, 2026
    Configuration menu
    Copy the full SHA
    a5d0624 View commit details
    Browse the repository at this point in the history
Loading