fix: hard-block political figures/events/images in risk and analyzer

This commit is contained in:
2026-02-28 20:09:12 +08:00
parent f411250a52
commit 1e274b43e2
3 changed files with 18 additions and 5 deletions

View File

@@ -252,6 +252,11 @@ class ImageAnalyzer:
FORBIDDEN_CONTENT_KEYWORDS = (
# 党政/涉政
"党政", "涉政", "政治人物", "领导人", "国旗", "国徽", "党徽", "党旗", "时政宣传",
"政治事件", "时政", "政要", "政治海报", "政治宣传", "政治标语",
"天安门", "人民大会堂", "中南海",
"习近平", "毛泽东", "邓小平", "江泽民", "胡锦涛", "李克强", "周恩来",
"中国共产党", "共产党", "中共", "党代会", "两会", "人大", "政协",
"trump", "donald trump", "biden", "putin", "zelensky", "xi jinping",
# 黄暴血腥
"黄色", "擦边", "裸露", "色情", "性暗示", "暴力", "凶杀", "打斗", "枪击", "血腥", "尸体", "虐待",
# 英文兜底
@@ -668,8 +673,8 @@ class ImageAnalyzer:
if forbidden_scene or sensitive_hit:
feasibility = "no"
risk = "high"
note = "含党政/涉黄/暴力/血腥等敏感内容,不接单"
reason = (reason or "敏感内容") + " | 敏感内容不接单"
note = "政治/党政/涉黄/暴力/血腥等敏感内容,不接单"
reason = (reason or "敏感内容") + " | 敏感内容不接单(政治类一律拒单)"
price_suggest = 0
# 确保是 5 的倍数