员工岗位可重新启用;调价认空运航线;会话存档跳号补拉;陆运报价按车型列回填
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -19,6 +19,7 @@ from agent.policy.sea_group_ops import (
|
||||
apply_tms_quote_choice,
|
||||
capture_group_lost_reason,
|
||||
dissolve_group,
|
||||
dissolve_orphan_group,
|
||||
group_client_of,
|
||||
handle_group_file,
|
||||
hydrate_ticket,
|
||||
@@ -82,6 +83,24 @@ def handle_group_inbound(
|
||||
ticket = _find_ticket(book, chat_id)
|
||||
if ticket is None:
|
||||
logger.info("group_inbound 对不上工单 chat=%s", chat_id)
|
||||
# 老群/迁库丢绑定:对不上工单时,「解散群」仍按企微当前成员清人。
|
||||
from agent.routing.group_intent import INTENT_DISSOLVE, classify_group_text
|
||||
|
||||
kind_orphan = (message.msg_type or "text").lower()
|
||||
if kind_orphan in {"", "text"} and (
|
||||
classify_group_text(message.content or "", injected=injected_intent)
|
||||
== INTENT_DISSOLVE
|
||||
):
|
||||
logger.info(
|
||||
"group_inbound 无工单仍解散 chat=%s sender=%s",
|
||||
chat_id,
|
||||
message.sender_id,
|
||||
)
|
||||
return dissolve_orphan_group(
|
||||
flow=engine,
|
||||
chat_id=chat_id,
|
||||
sender_id=message.sender_id or "",
|
||||
)
|
||||
return "group_ignore"
|
||||
if flow is None:
|
||||
view0 = ticket_view(ticket)
|
||||
|
||||
Reference in New Issue
Block a user