wangliang
e8e89601a5
feat: 修复订单查询和物流查询功能
主要修改:
1. 订单数据解析修复 (agent/agents/order.py)
- 修复 Mall API 返回数据的嵌套结构解析
- 更新字段映射:orderId→order_id, orderProduct→items, statusText→status_text
- 支持多种商品图片字段:image, pic, thumb, productImg
- 添加详细的调试日志
2. 物流查询修复 (mcp_servers/order_mcp/server.py)
- 修复物流接口返回数据结构解析 (data[].trackingCode→tracking_number)
- 添加 print() 日志用于调试
- 支持多种字段名映射
3. Chatwoot 集成优化 (agent/integrations/chatwoot.py)
- 添加 json 模块导入
- 完善订单卡片和表单展示功能
4. API 请求头优化 (mcp_servers/shared/mall_client.py)
- 更新 User-Agent 和 Accept 头
- 修正 Origin 和 Referer 大小写
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 19:10:21 +08:00
..
2026-01-20 19:10:21 +08:00
2026-01-20 14:51:30 +08:00
2026-01-20 19:10:21 +08:00
2026-01-16 16:28:47 +08:00
2026-01-14 19:25:22 +08:00
2026-01-20 14:51:30 +08:00
2026-01-16 18:36:17 +08:00
2026-01-14 19:25:22 +08:00
2026-01-20 14:51:30 +08:00
2026-01-14 19:25:22 +08:00
2026-01-14 19:25:22 +08:00
2026-01-16 16:28:47 +08:00
2026-01-16 16:28:47 +08:00