修改获取等级等信息的超时设置
This commit is contained in:
parent
bd4dfc2665
commit
4703356f88
@ -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']
|
||||
|
||||
@ -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 并截获响应数据
|
||||
|
||||
Loading…
Reference in New Issue
Block a user