checkpoint: 提交当前工作区代码(同义词配置初版 + 既有流程改动)
- 新增 inq_synonym 表、62组同义词种子与智能体只读接口 - Python 同义词加载/归一化与 1板/2箱 机读 - 同步当前分支既有协作、报价识别、陆运等改动
This commit is contained in:
@@ -1259,6 +1259,7 @@ class LandTextInquiryFlow(SeaTextInquiryFlow):
|
||||
"""
|
||||
from agent.policy.handoff_human import (
|
||||
COLLAB_MODE_HANDOFF,
|
||||
chat_serves_work_order,
|
||||
ensure_formal_ticket_for_handoff,
|
||||
is_virtual_no,
|
||||
)
|
||||
@@ -1275,6 +1276,19 @@ class LandTextInquiryFlow(SeaTextInquiryFlow):
|
||||
|
||||
# ① 幂等:已有群就直接回执。重复点提交/连点都不能建出第二个群。
|
||||
existing = (sess.collab_chat_id or "").strip()
|
||||
if existing and not chat_serves_work_order(
|
||||
self._ledger,
|
||||
existing,
|
||||
(sess.handoff_work_order_no or sess.work_order_no or "").strip(),
|
||||
):
|
||||
# 书签上的群是另一张单的:复用会把陆运 BOT 标记写到空运群,之后整群消息走错 handler。
|
||||
logger.warning(
|
||||
"陆运转人工旧群不属于本单,改新建 chat=%s wo=%s",
|
||||
existing,
|
||||
(sess.handoff_work_order_no or sess.work_order_no or "-"),
|
||||
)
|
||||
existing = ""
|
||||
sess.collab_chat_id = ""
|
||||
if existing:
|
||||
sess.collab_mode = COLLAB_MODE_HANDOFF
|
||||
sess.handoff_committed = True
|
||||
|
||||
Reference in New Issue
Block a user