feat: 维护中国代理池并支持账号自动均匀使用

This commit is contained in:
2026-11-15 02:18:17 +08:00
parent aa26d00c60
commit ce2d6e08dd
20 changed files with 1733 additions and 162 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ from euniv.course_workers import CourseWorkersError
from euniv.course_workers import apply as apply_workers
from euniv.course_workers import of as workers_of
from euniv.course_workers import view_of as workers_view
from euniv.proxy import ProxyError, apply, clear, summary_of, url_of, view_of
from euniv.proxy import ProxyError, apply, clear, enabled, summary_of, url_of, view_of
from euniv.study_window import StudyWindowError
from euniv.study_window import apply as apply_start
from euniv.study_window import label_of as start_label
@@ -73,7 +73,7 @@ def list_users(db: Session) -> list[dict]:
"last_refresh_at": _iso_time(account.last_refresh_at),
"credential_valid": _optional_bool(account.credential_valid),
"month_hours": account.month_hours or "",
"has_proxy": bool(account.proxy_scheme and account.proxy_host and account.proxy_port),
"has_proxy": enabled(account),
"proxy": summary_of(account),
"study_start": start_label(account),
"study_start_day": int(account.study_start_day or 1),