Files
soul-yongping/.cursor/agent/小程序开发工程师/evolution/2026-03-05.md

14 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 小程序开发工程师 经验记录 - 2026-03-05
## 分支冲突后功能完整性分析会议
- **app.json 多页面配置**:建议拆行便于维护,避免多页面写在同一行(如第 21 行)。
- **分支合并后需做核心流程自测**登录→阅读→购买→提现→找伙伴→个人资料→VIP确认无白屏、无接口报错。
- **重点确认**`/api/miniprogram/orders`(购买记录)是否已实现;`完整的` 分支上的优化(如 5a5f0087 卡片边距)是否已并入 devlop。
## 文章详情 @某人 高亮与一键加好友方案讨论
- **展示**:阅读页 content 需解析「@ 标记」格式(如 `@[昵称](userId)`),将 @ 片段渲染为高亮可点击 `<text data-user-id>`,点击调 miniprogram 添加好友接口。
- **接口**:添加好友接口由后端在 miniprogram 组提供(如 `POST /api/miniprogram/friend/add`),入参 `targetUserId`;不调用 api_v1 存客宝接口。
- **实现要点**:在现有 contentParagraphs 按行渲染基础上,对每行再做 mention 解析,得到 text/mention 片段数组后 WXML 分支渲染;不改动现有阅读权限、进度、购买逻辑。