feat(ECR-012–016): 合规、题库、时辰刷新、头像、MBTI OEJTS 与埋点

落地输入合规、探索题库、报告日/时辰刷新、账号头像、OEJTS 量表,并补齐 H5 埋点与 Admin 漏斗;同步 ESS 工件、切至自建 Git、清理 GitHub Actions。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-13 01:27:58 +08:00
co-authored by Cursor
parent 13860bf1ef
commit 89756f65b4
227 changed files with 7405 additions and 1407 deletions
@@ -0,0 +1,35 @@
# 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