feat: 账号可配置 HTTP/HTTPS/SOCKS 代理
This commit is contained in:
@@ -173,7 +173,10 @@ def _fetch_and_store(trigger: str) -> bool:
|
||||
return False
|
||||
password = decrypt_secret(account.password_cipher)
|
||||
credential = json.loads(decrypt_secret(account.credential_cipher))
|
||||
client = EunivClient(employee_id, password)
|
||||
from euniv.proxy import url_of
|
||||
|
||||
proxy = url_of(account)
|
||||
client = EunivClient(employee_id, password, proxy=proxy)
|
||||
try:
|
||||
client.restore(credential)
|
||||
if not client.credential_alive():
|
||||
|
||||
Reference in New Issue
Block a user