落地输入合规、探索题库、报告日/时辰刷新、账号头像、OEJTS 量表,并补齐 H5 埋点与 Admin 漏斗;同步 ESS 工件、切至自建 Git、清理 GitHub Actions。 Co-authored-by: Cursor <cursoragent@cursor.com>
38 lines
992 B
Markdown
38 lines
992 B
Markdown
# 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
|
||
|
||
- OpenAPI:upload 400/401 说明 · media 路径约束说明
|
||
|
||
## Process debt
|
||
|
||
实现早于 ECR;本报告不声称正序路径。
|
||
|
||
## Manual smoke(建议 Reviewer / Human)
|
||
|
||
- [ ] 登录「我的」上传 JPG<2MB
|
||
- [ ] 超限 / 非图片失败文案
|
||
- [ ] 无头像显示 default-avatar
|
||
- [ ] 直开 `/api/v1/media/avatars/{uuid}.ext`
|