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
+32
View File
@@ -32,11 +32,43 @@ func resultPack(slug, key, fallbackLabel string) pack {
switch slug {
case "emotion-pattern":
return emotionPack(key, fallbackLabel)
case "mbti-lite":
return mbtiPack(key, fallbackLabel)
default:
if key == "high" || key == "mid" || key == "low" {
return bankExplorePack(fallbackLabel)
}
return communicationPack(key, fallbackLabel)
}
}
func bankExplorePack(label string) pack {
if label == "" {
label = "节奏适中型"
}
return pack{
Label: label, ShareLine: "我的探索结果:" + label,
Summary: "这是基于题库作答的自我探索速览,用于觉察倾向与日常参考,不是能力定论,更不是心理或医学诊断。",
Overview: "题库结果会随作答波动。你可以把它当成一面镜子:哪些选项更容易选中、身体与情绪有什么反应,比「分数高低」更重要。",
Dimensions: []map[string]interface{}{
{"title": "自我觉察", "score": 72, "note": "留意答题时的身体感受"},
{"title": "可行动性", "score": 68, "note": "挑一条小习惯试一周"},
{"title": "非定论", "score": 90, "note": "结果可随阶段变化"},
},
Strengths: []string{"愿意自我观察", "愿意花时间完成题库"},
Watchouts: []string{"不要把结果当标签钉死", "不适情绪请寻求专业支持"},
Tips: []string{"截图保存一句对你有感的描述", "把一条建议写成今日小行动", "可与问答助手聊聊具体情境"},
Scripts: []string{"这份结果让我想到……", "我想先观察一周再决定要不要改习惯。"},
GrowthPlan: []map[string]string{
{"phase": "本周", "focus": "选一条建议做一次小实验"},
{"phase": "本月", "focus": "复盘:哪些描述仍然贴切"},
},
FAQ: []map[string]string{
{"q": "这是心理诊断吗?", "a": "不是。愈心谷题库只做自我探索参考,不能替代专业评估或治疗。"},
},
}
}
func communicationPack(key, fallback string) pack {
switch key {
case "A":