This commit is contained in:
jinql
2025-09-01 23:38:52 +08:00
parent 4236de43a9
commit a5290c5e03
4 changed files with 52 additions and 12 deletions

View File

@@ -34,7 +34,7 @@ async def get_favicon(
bg_tasks: BackgroundTasks,
url: Optional[str] = Query(None, description="网址eg. https://www.baidu.com"),
refresh: Optional[str] = Query(None, include_in_schema=False),
sync: Optional[str] = Query(False, description="是否使用同步方式获取")
sync: Optional[str] = Query('false', description="是否使用同步方式获取")
):
"""获取网站图标"""
return await _service.get_favicon_handler(request, bg_tasks, url, refresh, sync)