电报推送移除美国城市;修复 market_overview_api 死引用

This commit is contained in:
2569718930@qq.com
2026-05-25 23:07:32 +08:00
parent b3aabe61ce
commit c2bb9d3901
+1 -15
View File
@@ -83,18 +83,4 @@ async def get_scan_terminal_ai_payload(request: Request) -> Dict[str, Any]:
async def get_scan_terminal_overview_payload(request: Request) -> Dict[str, Any]:
try:
body = await request.json()
except Exception:
body = {}
if not isinstance(body, dict):
raise HTTPException(status_code=400, detail="Invalid JSON body")
rows = body.get("rows") if isinstance(body.get("rows"), list) else []
locale = str(body.get("locale") or "zh-CN").strip()
force_refresh = str(body.get("force_refresh") or "false").strip().lower() in {"1", "true", "yes"}
return await run_in_threadpool(
build_market_overview_payload,
rows,
locale=locale,
force_refresh=force_refresh,
)
return {"overview": [], "available": False}