修改获取等级等信息的超时设置

This commit is contained in:
sansenhoshi 2025-12-25 15:21:37 +08:00
parent bd4dfc2665
commit 4703356f88
2 changed files with 1 additions and 2 deletions

View File

@ -119,7 +119,6 @@ async def get_bf6_rank(player):
user_info = user
logger.info(f"单用户{user_info}")
logger.info(f"查询结果: {json.dumps(user_info, ensure_ascii=False, indent=2)}")
if 'rank' not in user_info:
return 0
return user_info['rank']

View File

@ -9,7 +9,7 @@ from playwright.async_api import async_playwright, Response
async def fetch_tracker_search(
search_url: str,
cookies_txt: str,
wait_seconds: int = 5,
wait_seconds: int = 2,
) -> Optional[Dict]:
"""
使用 Playwright + cookies 访问 tracker.gg API 并截获响应数据