update pay ui

This commit is contained in:
2025-12-17 16:20:27 +08:00
parent 5804aa27c4
commit c88f13db89
2 changed files with 6 additions and 1 deletions

View File

@@ -1494,7 +1494,11 @@ async def handle_get_concept_details(args: Dict[str, Any]) -> Any:
async def handle_get_stock_concepts(args: Dict[str, Any]) -> Any: async def handle_get_stock_concepts(args: Dict[str, Any]) -> Any:
"""处理股票概念获取""" """处理股票概念获取"""
stock_code = args["stock_code"] # 兼容不同的参数名: stock_code, seccode, code
stock_code = args.get("stock_code") or args.get("seccode") or args.get("code")
if not stock_code:
raise ValueError("缺少股票代码参数 (stock_code/seccode/code)")
params = { params = {
"size": args.get("size", 50), "size": args.get("size", 50),
"sort_by": args.get("sort_by", "stock_count"), "sort_by": args.get("sort_by", "stock_count"),
@@ -1503,6 +1507,7 @@ async def handle_get_stock_concepts(args: Dict[str, Any]) -> Any:
if args.get("trade_date"): if args.get("trade_date"):
params["trade_date"] = args["trade_date"] params["trade_date"] = args["trade_date"]
logger.info(f"[get_stock_concepts] 查询股票 {stock_code} 的概念")
response = await HTTP_CLIENT.get( response = await HTTP_CLIENT.get(
f"{ServiceEndpoints.CONCEPT_API}/stock/{stock_code}/concepts", f"{ServiceEndpoints.CONCEPT_API}/stock/{stock_code}/concepts",
params=params params=params