chore: 服务端品牌与行业残留更名清零(HESUPIPE/DB名/redis字段)

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-29 18:29:07 +08:00
parent 528b81b192
commit f0af1cfe8e
12 changed files with 24 additions and 28 deletions
+2 -2
View File
@@ -123,7 +123,7 @@ def test_scan_wa_me_link():
def test_scan_ignores_prices_years_and_ai_messages():
texts = m(
"budget $25,000 for 2024 BYD Tang", # 价格+年份
"budget $25,000 for 2024 PE100 pipes", # 价格+年份
"50,000 km mileage", # 里程
"I want 5 units", # 数量
)
@@ -221,7 +221,7 @@ def test_recency_kills_extractor_oscillation():
before = {"phone": "+8613800138004", "whatsapp": "+8613800138004"}
after = {"phone": "+8613800138000", "whatsapp": "+8613800138004"} # extractor 振荡
msgs = _u("my whatsapp is +8613800138000", "my whatsapp is +8613800138004",
"any car talk")
"any pipe talk")
assert resolve_by_recency(before, after, msgs) == before # 无变化→不触发更正