落地输入合规、探索题库、报告日/时辰刷新、账号头像、OEJTS 量表,并补齐 H5 埋点与 Admin 漏斗;同步 ESS 工件、切至自建 Git、清理 GitHub Actions。 Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
750 B
Markdown
36 lines
750 B
Markdown
# BD-2026-012 — Input text compliance
|
||
|
||
Status: Approved
|
||
**ECR:** ECR-012
|
||
**Date:** 2026-08-12
|
||
**Change Level:** L2
|
||
**Risk:** Low
|
||
|
||
## Backend Change Boundary
|
||
|
||
### In
|
||
|
||
- Package `internal/textsafe`(纯函数,无 DB)
|
||
- Service/Handler 在写库前 `Check(Kind, s)`
|
||
- 失败 → `response.Fail(..., 40060, err.Error())`
|
||
|
||
### Out
|
||
|
||
- 新表 · Redis 限流 · Admin CMS 全量
|
||
|
||
## Module
|
||
|
||
| Module | Change |
|
||
|--------|--------|
|
||
| textsafe | Check / Normalize / Kind |
|
||
| auth · profile · ask · companion · growth · synastry | 调用 Check |
|
||
|
||
## Test
|
||
|
||
- 单测:禁止词 · XSS · 刷屏 · 长度 · 合法样本
|
||
- 可选 integration 抽一条 PATCH nickname
|
||
|
||
## Rollback
|
||
|
||
- 去掉 Check 调用即可;无 migration
|