落地空运群内协同与锁舱出站。

群里按 BOT 通道激活当前工单、航线报价和成交跟进;没有 TMS 报价编号时用工单字段补齐仍调锁舱,避免被本地规则拦住。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-16 17:25:42 +08:00
co-authored by Cursor
parent 12219cacb1
commit d9029dec89
62 changed files with 6772 additions and 159 deletions
@@ -86,6 +86,26 @@ class WshotoParseTests(unittest.TestCase):
self.assertEqual(msg.message_id, "wshoto:m1")
self.assertEqual(msg.create_time, 1_700_000_000)
def test_official_text_content_beats_short_preview(self) -> None:
"""管家 content 常是摘要或空,正文在企微官方 text.content。必须取更长的那份。"""
msg = archive_record_to_inbound(
{
"msgid": "m1b",
"seq": 11,
"from": "LuoXiaoHua",
"room_id": "wr_room_1",
"msgtype": "text",
"content": "码头操作费",
"msg_content": {
"text": {"content": "码头操作费100CNY\n报关费改为300CNY"}
},
},
seat_userids=["AI001"],
)
self.assertIsNotNone(msg)
assert msg is not None
self.assertEqual(msg.content, "码头操作费100CNY\n报关费改为300CNY")
def test_skip_archive_seat_and_display_name(self) -> None:
self.assertIsNone(
archive_record_to_inbound(