diff --git a/requirements.txt b/requirements.txt index fcfca27..15d5e7f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ flask>=3.0 flask-socketio>=5.3 +eventlet>=0.36 playwright==1.52.0 playwright-stealth>=1.0 pyyaml>=6.0 diff --git a/server/services/auth_service.py b/server/services/auth_service.py index 804a2d0..345c3e4 100644 --- a/server/services/auth_service.py +++ b/server/services/auth_service.py @@ -146,7 +146,7 @@ async def login_with_password(account_id, phone, password): # 保存 storage_state + 精简 cookies auth_path = get_auth_path(account_id) await context.storage_state(path=auth_path) - _save_cookies_file(account_id, context) + await _save_cookies_file_async(context, account_id) return True, "登录成功"