feat: MBTI头像与用户规则链路升级,三端页面与接口同步
Made-with: Cursor
This commit is contained in:
13
.cursor/agent/开发助理/evolution/2026-03-21-MBTI头像C端全链路兜底.md
Normal file
13
.cursor/agent/开发助理/evolution/2026-03-21-MBTI头像C端全链路兜底.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# 2026-03-21 MBTI 头像 C 端全链路兜底
|
||||
|
||||
## 问题
|
||||
系统设置瘦身与 MBTI 映射迁到用户管理后,需在小程序多页面与匹配接口统一「无微信头像 → MBTI 映射」行为,避免仅海报单点生效。
|
||||
|
||||
## 做法
|
||||
- 新增 `miniprogram/utils/mbtiAvatar.js`(`resolveAvatarWithMbti`);`app.resolveAvatarWithMbti` 封装全局 map。
|
||||
- 我的页 `profileAvatarDisplay`;资料编辑 `avatarPreviewUrl`;profile-show、member-detail、referral 海报复用同一逻辑。
|
||||
- 后端 `match.go`:`avatar` 为空时用 `getMbtiAvatar`;响应增加 `mbti` 字段;找伙伴卡片 wxml 增加无图占位。
|
||||
- 管理端 `MbtiAvatarsManager` 补充 downloadFile 域名说明。
|
||||
|
||||
## 可复用规则
|
||||
配置驱动展示:公开 `GET /api/miniprogram/config/mbti-avatars` + 本地短时缓存;业务侧只调 `resolveAvatarWithMbti`,避免重复拼接 baseUrl。
|
||||
@@ -4,4 +4,5 @@
|
||||
|
||||
| 日期 | 摘要 | 文件 |
|
||||
|------|------|------|
|
||||
| 2026-03-21 | MBTI 头像小程序全链路兜底 + 匹配接口回填 | 2026-03-21-MBTI头像C端全链路兜底.md |
|
||||
| 2026-03-16 | 用户交互习惯分析(基于 agent-transcripts) | 2026-03-16-交互习惯分析.md |
|
||||
|
||||
Reference in New Issue
Block a user