fix: 事件异常测服会话和卡片不加 [test]

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-21 18:35:05 +08:00
co-authored by Cursor
parent a878b046d2
commit 8afe909230
3 changed files with 19 additions and 8 deletions
@@ -78,7 +78,8 @@ def poll_event_exceptions(
stamp = now or datetime.now(SHANGHAI)
if stamp.tzinfo is None:
stamp = stamp.replace(tzinfo=SHANGHAI)
test_prefix = str(getattr(cfg, "ytd_env", "") or "").strip().lower() == "test"
# 测服会话/卡片也不加 [test],与销售询价正文一致。
test_prefix = False
lookup = timeout_lookup or getattr(book, "get_timeout_by_code", None)
ready = notify_app_flag(notify_ready)
sent = 0