Files
digital-psychology/docs/TEST_REPORT/ECR-015.md
T
jackyu66gitandCursor 89756f65b4 feat(ECR-012–016): 合规、题库、时辰刷新、头像、MBTI OEJTS 与埋点
落地输入合规、探索题库、报告日/时辰刷新、账号头像、OEJTS 量表,并补齐 H5 埋点与 Admin 漏斗;同步 ESS 工件、切至自建 Git、清理 GitHub Actions。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 01:27:58 +08:00

38 lines
992 B
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.
# TEST_REPORT · ECR-015
**Date:** 2026-08-13
**Result:** PASS(工程师自测)
**Retrospective:** true
## Wiring verified
| Item | Status |
|------|--------|
| migration `000018` · `users.avatar_url` | 本地 Postgres 列存在 |
| UploadAvatar · MediaHandler · avatar.Store | 已接线 |
| SDK `authUploadAvatar` · types `avatar_url` | 已有 |
| H5 MinePage + `DEFAULT_AVATAR_SRC` | 已有 · `public/default-avatar.png` |
| `apps/api/data/` gitignore | 已有 |
## Unit
```bash
cd apps/api && go test ./internal/avatar/ -count=1
# PASS · ResolveAbs traversal · bad type/size · store+overwrite
```
## Contract
- OpenAPIupload 400/401 说明 · media 路径约束说明
## Process debt
实现早于 ECR;本报告不声称正序路径。
## Manual smoke(建议 Reviewer / Human
- [ ] 登录「我的」上传 JPG<2MB
- [ ] 超限 / 非图片失败文案
- [ ] 无头像显示 default-avatar
- [ ] 直开 `/api/v1/media/avatars/{uuid}.ext`