fix: 代理池为空时在学习状态里写明正在直连

This commit is contained in:
2026-11-16 02:49:48 +08:00
parent 4a4d17f75c
commit 7782bba8d8
+2
View File
@@ -386,6 +386,8 @@ def _job_from_account(row) -> tuple | None:
pool = uses_pool(row) pool = uses_pool(row)
try: try:
proxy = bind_url(row) proxy = bind_url(row)
if pool and not proxy and employee_id:
_set_user_status(employee_id, message="正在直连")
except Exception as exc: except Exception as exc:
log.warning("用户 %s 凭据无法读取: %s", employee_id, exc) log.warning("用户 %s 凭据无法读取: %s", employee_id, exc)
if employee_id: if employee_id: