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:
@@ -66,11 +66,15 @@ func BuildWith(opts BuildOpts) (Output, error) {
|
||||
|
||||
asOf := opts.AsOf
|
||||
if asOf.IsZero() {
|
||||
asOf = time.Now()
|
||||
asOf = time.Now().In(time.FixedZone("CST", 8*3600))
|
||||
} else {
|
||||
asOf = asOf.In(time.FixedZone("CST", 8*3600))
|
||||
}
|
||||
fort := outlook.Build(chart, asOf)
|
||||
daily := fort.Daily
|
||||
fortMap := fort.AsMap()
|
||||
dayKey := asOf.Format("2006-01-02")
|
||||
validUntil := time.Date(asOf.Year(), asOf.Month(), asOf.Day()+1, 0, 0, 0, 0, asOf.Location())
|
||||
|
||||
planetsOut := make([]map[string]any, 0, len(chart.Planets))
|
||||
for _, p := range chart.Planets {
|
||||
@@ -121,6 +125,8 @@ func BuildWith(opts BuildOpts) (Output, error) {
|
||||
"title": daily.Title, "focus": daily.Focus, "tip": daily.Tip,
|
||||
"energy": daily.Score, "note": daily.Label, "score": daily.Score, "label": daily.Label,
|
||||
},
|
||||
"as_of": dayKey,
|
||||
"valid_until": validUntil.Format(time.RFC3339),
|
||||
"strengths_preview": pack.Strengths[:min(3, len(pack.Strengths))],
|
||||
"blind_spots_preview": []string{"完整相位与年运详解见深度版。"},
|
||||
"interaction_tags": []string{
|
||||
|
||||
Reference in New Issue
Block a user