fix(footer): 彻底移除页脚遗留的设计提示词文案
这个提交包含在:
@@ -64,15 +64,12 @@
|
||||
</div>
|
||||
|
||||
<!-- 底部版权与备案信息 -->
|
||||
<div class="nhc-footer-bottom">
|
||||
<div class="nhc-footer-bottom" style="justify-content: center; text-align: center;">
|
||||
<div>
|
||||
<span>© {:date('Y')} 贵阳纳海川科技有限公司 版权所有</span>
|
||||
<span style="margin: 0 10px;">|</span>
|
||||
<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer">{:__config('site_beian','value')}</a>
|
||||
</div>
|
||||
<div>
|
||||
<span>严谨商务 · 现代中式 · 高级感专业软件服务</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -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):
|
||||
"""必须包含具体务实的工程化、场景化语言"""
|
||||
|
||||
在新工单中引用
屏蔽一个用户