feat(compliance): add content compliance detection across tenant, ops, and clients
Implements the Revision 8/9 compliance design: tenant + ops backends, ops-web content-safety pages, admin-web editor/publish gate integration, desktop publish block surfacing, and supporting migrations / shared types / config plumbing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -125,6 +125,9 @@ export function normalizeWeixinGzhPublishErrorMessage(
|
||||
}
|
||||
|
||||
export function normalizePublisherErrorMessage(message: string | null | undefined): string | null {
|
||||
if (message === 'compliance_blocked') {
|
||||
return '内容合规检测已阻断本次发布,请修改文章后重新发布。'
|
||||
}
|
||||
const qiehaoMessage = normalizeQiehaoPublishErrorMessage(message)
|
||||
const wangyihaoMessage = normalizeWangyihaoPublishErrorMessage(qiehaoMessage)
|
||||
const loginMessage = normalizePublisherLoginErrorMessage(wangyihaoMessage)
|
||||
|
||||
Reference in New Issue
Block a user