fix(footer): 彻底移除页脚遗留的设计提示词文案

这个提交包含在:
wikiboss
2026-10-08 18:24:17 +08:00
父节点 ab0ce76895
当前提交 758c1bbbdb
共有 2 个文件被更改,包括 11 次插入 和 7 次删除

查看文件

@@ -33,6 +33,10 @@ class TestNaturalCopywriting(unittest.TestCase):
def test_forbid_ai_buzzwords_and_translationese(self):
"""严格禁止典型 AI 假大空口号、翻译腔与泛化套话"""
self.footer_path = os.path.join(ROOT_DIR, 'addons/official/view/web/official_common/pc/footer.html')
with open(self.footer_path, 'r', encoding='utf-8') as f:
self.footer_html = f.read()
ai_buzzwords = [
'准备好与资深技术架构师展开深度研讨了吗', # 翻译腔
'认知智能化”跃迁', # 虚浮AI词
@@ -40,7 +44,9 @@ class TestNaturalCopywriting(unittest.TestCase):
'开启确定性数字化未来', # 泛化套话
'让您的企业也拥有经得起考验的', # AI祈使句
'开启您的企业数字化与智能化升级项目', # 泛化套话
'开启确定性数字化技术合作' # 虚词
'开启确定性数字化技术合作', # 虚词
'严谨商务 · 现代中式 · 高级感专业软件服务', # 泄露的设计Prompt
'现代中式 · 高级感'
]
all_html = (
self.index_html + "\n" +
@@ -48,10 +54,11 @@ class TestNaturalCopywriting(unittest.TestCase):
self.products_html + "\n" +
self.cases_html + "\n" +
self.about_html + "\n" +
self.contact_html
self.contact_html + "\n" +
self.footer_html
)
for buzzword in ai_buzzwords:
self.assertNotIn(buzzword, all_html, f"全站必须彻底剔除 AI 通用套话/翻译腔: '{buzzword}'")
self.assertNotIn(buzzword, all_html, f"全站必须彻底剔除 AI 通用套话/提示词残留: '{buzzword}'")
def test_require_pragmatic_engineering_copy(self):
"""必须包含具体务实的工程化、场景化语言"""