feat: 优化前端显示&修复若干bug

This commit is contained in:
CaasianVale
2025-03-07 03:33:18 +08:00
parent ff5b820a57
commit 4c115cf325
29 changed files with 3726 additions and 1209 deletions

View File

@@ -49,8 +49,11 @@ class USStockServiceAsync:
'price': float(row['price']) if pd.notna(row['price']) else 0.0,
'market_value': float(row['market_value']) if pd.notna(row['market_value']) else 0.0
})
# 限制只返回前10个结果
if len(formatted_results) >= 10:
break
logger.info(f"美股搜索完成,找到 {len(formatted_results)} 个匹配项")
logger.info(f"美股搜索完成,找到 {len(formatted_results)} 个匹配项限制显示前10个")
return formatted_results
except Exception as e: