空运「货交」只记提货地址,不再当成起运地。舱位旧说法「释放」先问航线是否取消,陆运通关口岸示例改为友谊关。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -289,6 +289,15 @@ def _cabin(flow: Any, ticket: object, chat_id: str, sender_id: str, text: str, i
|
||||
operator_name,
|
||||
)
|
||||
|
||||
if intent == "ask":
|
||||
if not is_airline(flow, sender_id):
|
||||
send_group_text(group_client_of(flow), chat_id, copy.air_airline_only_cabin())
|
||||
return "not_airline"
|
||||
from agent.redis_coord.pending_cabin_cancel import save_pending_cabin_cancel
|
||||
|
||||
save_pending_cabin_cancel(chat_id, ticket_no(ticket))
|
||||
send_group_text(group_client_of(flow), chat_id, copy.air_release_ask())
|
||||
return "release_ask"
|
||||
if intent == "release":
|
||||
return apply_air_release(
|
||||
flow=flow,
|
||||
@@ -314,10 +323,15 @@ def _cabin(flow: Any, ticket: object, chat_id: str, sender_id: str, text: str, i
|
||||
|
||||
|
||||
def _cabin_intent(text: str) -> str:
|
||||
raw = text or ""
|
||||
if "释放" in raw and "舱" in raw:
|
||||
"""取消舱位马上办;和舱位有关的「释放」只提问。"""
|
||||
from agent.routing.air_group_intent import cabin_release_kind
|
||||
|
||||
kind = cabin_release_kind(text or "")
|
||||
if kind == "direct":
|
||||
return "release"
|
||||
if "锁舱" in raw:
|
||||
if kind == "ask":
|
||||
return "ask"
|
||||
if "锁舱" in (text or ""):
|
||||
return "lock"
|
||||
return ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user