fix: detect ai subscription card spam

This commit is contained in:
ngfchl
2026-07-07 23:30:01 +08:00
parent 5eb083bc47
commit 6148b2166a
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -29,3 +29,9 @@
(?:免费订购热线|销售热线|低价出售|款到发货|连锁加盟|加盟连锁).{0,20}(?:联系|私聊|代理|招商|加盟)?|75
(?:私人侦探|私家侦探|针孔摄象|调查婚外情).{0,20}(?:联系|私聊|服务|代理)?|90
(?:足球投注|地下钱庄|曾道人|六合彩).{0,20}(?:开户|下注|投注|联系|私聊)?|95
# AI 订阅虚拟卡/扣款卡广告
(?:虚拟卡|卡台|专用卡|开卡|绑卡|扣款).{0,32}(?:Claude|OpenAI|ChatGPT|AI\s*订阅|AI订阅|订阅|验证)|95
(?:Claude|OpenAI|ChatGPT|AI\s*订阅|AI订阅).{0,32}(?:虚拟卡|卡台|专用卡|开卡|绑卡|稳定支持|丝滑)|95
(?:虚拟卡|专用卡).{0,24}(?:丝滑扣款|稳定扣款|扣款\s*\d+\s*-\s*\d+\s*(?:刀|美元|美金)|5\s*-\s*20\s*刀)|90
+1 -1
View File
@@ -302,7 +302,7 @@ def local_classify(text: str) -> tuple[bool | None, str, int]:
return False, f"正常规则命中: {names}", spam_score - normal_score
# 长文本或命中弱灰产/引流信号时交给 AI,避免 0 分直接放过混淆广告
weak_ai_signal = re.search(r"\s*[uU]|交易所|项木|项目|带人|直\s*接\s*联系|联系|名额|先到先得|简介|简界|主页|日赚|日入|一天|万\s*\+|w\s*\+", norm, re.IGNORECASE)
weak_ai_signal = re.search(r"\s*[uU]|交易所|项木|项目|带人|直\s*接\s*联系|联系|名额|先到先得|简介|简界|主页|日赚|日入|一天|万\s*\+|w\s*\+|虚拟卡|卡台|专用卡|开卡|绑卡|扣款|AI\s*订阅|Claude|OpenAI|ChatGPT", norm, re.IGNORECASE)
if spam_score == 0 and (weak_ai_signal or len(norm) >= 80):
return None, "本地无强规则,进入AI兜底", 0