diff --git a/AI/WxMini/Start.py b/AI/WxMini/Start.py index c8c7fcc8..9262a160 100644 --- a/AI/WxMini/Start.py +++ b/AI/WxMini/Start.py @@ -404,7 +404,13 @@ async def get_risk_chat_logs( # 调用 get_chat_logs_by_risk_flag 方法 logs, total = await get_chat_logs_by_risk_flag(app.state.mysql_pool, risk_flag,current_user["person_id"], offset, page_size) if not logs: - raise HTTPException(status_code=404, detail="未找到符合条件的记录") + return { + "success": False, + "message": "没有找到相关记录", + "data": { + + } + } # 返回分页数据 return {