docs(tec): 更新货代发货通知批次库存能力文档

- 添加单票与多票发货需求的处理方式
- 说明库存 Excel 上传后的保存与关联机制
- 解释库存匹配与 Excel 生成的独立执行方式
- 明确批次库存的真相来源

feat(chat): 优化发货库存上传提示语
- 根据上传结果生成更详细的提示信息
- 增加批次号的提示逻辑
- 使用国际化支持替换硬编码字符串

refactor(chat): 重构发货库存上传处理逻辑
- 移除多余的任务选择逻辑
- 简化上传处理流程
- 增强代码可读性与维护性

feat(locales): 更新多语言支持的提示信息
- 添加库存上传与任务处理的多语言提示
- 更新库存缺口与任务状态的描述
This commit is contained in:
hugo committed 2026-06-26 16:27:49 +08:00
1 parent 1bd9f278fe
commit 1cf8ff40bd
34 files changed
+4367 -3553

No files matched your search

+3
View File
@@ -512,6 +512,7 @@ class DifyService:
hxops_turn_id: str | None = None,
files: list[dict[str, Any]] | None = None,
inputs: dict[str, Any] | None = None,
persist_chat_log: bool = True,
):
"""
主流程,调用 Dify、解析 SSE、记录日志、写库、向上游继续产出 SSE
@@ -592,6 +593,8 @@ class DifyService:
return None
def persist_stream_chat(data: dict, event_name: str) -> None:
if not persist_chat_log:
return
result = persist_stream_chat_async(data, event_name)
if isinstance(result, dict):
if result.get("chat_log_id") is not None: