feat: 为出站请求统一接入 HTTP 代理
This commit is contained in:
@@ -25,6 +25,7 @@ from typing import Any
|
||||
import yaml
|
||||
|
||||
from app.shared.config import BASE_DIR, Settings
|
||||
from app.shared.proxy import playwright_launch_proxy
|
||||
from app.trading.core import auth_site
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -355,7 +356,7 @@ async def login_one(
|
||||
user_data_dir=str(account.user_data_dir),
|
||||
headless=False, # 自动登录仍需有头:撞验证码要人工接管
|
||||
channel=settings.browser_channel or None,
|
||||
proxy=settings.playwright_proxy,
|
||||
proxy=playwright_launch_proxy(settings),
|
||||
user_agent=profile.user_agent,
|
||||
locale="ja-JP",
|
||||
timezone_id="Asia/Tokyo",
|
||||
|
||||
Reference in New Issue
Block a user