feat(新功能):
fix(修复bug): 推荐接口 请求参数打印 docs(文档变更): refactor(重构): test(增加测试):
This commit is contained in:
@@ -92,6 +92,7 @@ async def get_recommendations(user_id: int, category: str, brand_id: int, brand_
|
|||||||
]
|
]
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
|
logger.info(f"user_id:{user_id}, category:{category}, num_recommendations:{num_recommendations}")
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
cache_key = (user_id, category)
|
cache_key = (user_id, category)
|
||||||
# === 新增:用户存在性检查 ===
|
# === 新增:用户存在性检查 ===
|
||||||
|
|||||||
Reference in New Issue
Block a user