From 5929072b76b7bd3b4daefa5ed14f39cc32bf7071 Mon Sep 17 00:00:00 2001 From: lanceyq <1982376970@qq.com> Date: Wed, 4 Mar 2026 16:24:00 +0800 Subject: [PATCH] [changes] Emotional suggestions should not return error messages. --- api/app/controllers/emotion_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app/controllers/emotion_controller.py b/api/app/controllers/emotion_controller.py index ea7b719f..8cfc5014 100644 --- a/api/app/controllers/emotion_controller.py +++ b/api/app/controllers/emotion_controller.py @@ -295,8 +295,8 @@ async def get_emotion_suggestions( f"用户 {request.end_user_id} 的建议数据不存在", extra={"end_user_id": request.end_user_id} ) - return fail( - code=404, + return success( + data={"exists": False}, msg="情绪建议数据不存在,请点击右上角刷新进行初始化" )