feat(新功能):

fix(修复bug):  推荐接口 请求参数打印
docs(文档变更):
refactor(重构):
test(增加测试):
This commit is contained in:
zhh
2025-11-24 15:18:02 +08:00
parent 6e06c8b516
commit 8a9f160cfa

View File

@@ -92,6 +92,7 @@ async def get_recommendations(user_id: int, category: str, brand_id: int, brand_
]
"""
try:
logger.info(f"user_id:{user_id}, category:{category}, num_recommendations:{num_recommendations}")
start_time = time.time()
cache_key = (user_id, category)
# === 新增:用户存在性检查 ===