docs: 精简项目文档并清理 Ruff 问题

This commit is contained in:
yml2213
2026-11-06 11:09:53 +08:00
parent 03bc0818dd
commit e7e187cf57
39 changed files with 269 additions and 8295 deletions
@@ -67,9 +67,12 @@ def _match_suit_item(want: str, rows: list[dict[str, Any]]) -> dict[str, Any] |
# 优先找带「套装」前缀的
for it in rows:
cname = str(it.get("commodityName") or "").strip()
if core in cname and not any(k in cname for k in SUIT_EXCLUDE_KEYWORDS):
if "套装" in cname:
return it
if (
core in cname
and "套装" in cname
and not any(k in cname for k in SUIT_EXCLUDE_KEYWORDS)
):
return it
# 3. 兜底匹配不带排除词的项
for it in rows: