feat: 开版订单 AI 解析服务

- 豆包 AI 解析企微消息 → 开版订单字段
- 字典枚举缓存(每日刷新,11 个分组 + 关联流程)
- 布料精确匹配,找不到自动新增
- 客户精确匹配,未找到返回建议
- 企微消息代理(解决前端 CORS)
- 支持 tags 写入(记录解析次数)
- 单条消息图片获取接口
This commit is contained in:
zuowei1216
2026-05-25 19:35:22 +08:00
commit eaed17c362
5 changed files with 646 additions and 0 deletions

15
.env.example Normal file
View File

@@ -0,0 +1,15 @@
# 豆包 AI 配置
AI_API_KEY=your-doubao-api-key
AI_BASE_URL=https://ark.cn-beijing.volces.com/api/v3
AI_MODEL=doubao-seed-2-0-mini-260428
# ERP 后端配置(用于查询字典/客户/布料)
ERP_BASE_URL=https://yuwenerp.yuwen.cloud
ERP_USERNAME=your-username
ERP_PASSWORD=your-password
# 服务端口
PORT=5050
# 调试模式(生产环境改为 false
DEBUG=true