fix(ai-nutritionist): unwrap double-layer Coze API responses
CRMEB wraps CozeBaseResponse again, so chat/retrieve/message payloads live at response.data.data. Added unwrapCozeResponse() and applied it to sendToAI, pollChatStatus, and getChatMessages. Updated test log. Made-with: Cursor
This commit is contained in:
23
docs/Testing/test-0325-1.md
Normal file
23
docs/Testing/test-0325-1.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# 手动测试问题
|
||||
|
||||
## 页面(pages/tool/food-encyclopedia)测试
|
||||
- 1. **已修复**页面(pages/tool/food-encyclopedia)报错:
|
||||
- 2. **已修复**页面(pages/tool/food-encyclopedia)中class="category-badge"改成显示中文
|
||||
- 3. **已修复**页面(pages/tool/food-encyclopedia)点击进入详情页
|
||||
|
||||
## 页面(pages/tool/nutrient-detail?name=%E9%92%BE)
|
||||
|
||||
- 1. **已修复**显示空白页,返回数据为空,如果是因为v2_knowledge 表尚无营养素数据,通过ai生成需要的数据可以插入到v2_knowledge表中
|
||||
|
||||
|
||||
## 页面(pages/tool/ai-nutritionist)
|
||||
|
||||
- 1. 优化方案:/Users/a123/msh-system/docs/功能开发详细设计_2026-03-25.md
|
||||
- 2. 对话响应还是很慢,是否可以使用SSE流式对话来优化响应速度?
|
||||
- 3. **已修复** 会话错误:"发起对话失败:未返回会话或对话ID"
|
||||
|
||||
|
||||
# 参考文档
|
||||
|
||||
- 1. /Users/a123/msh-system/docs/测试问题分析报告_2026-03-22.md
|
||||
- 2. /Users/a123/msh-system/docs/功能开发详细设计_2026-03-25.md
|
||||
Reference in New Issue
Block a user