feat: Admin 设用户等级并展示徽章于用户页

补齐 SetUserLevel 表单;用户主页/资料页展示徽章并触发 EvaluateAuto;勾选 §H Exp 与防刷。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-30 04:02:24 +08:00
parent 9e403a7178
commit 4ffcaecba2
13 changed files with 194 additions and 86 deletions

View File

@@ -0,0 +1,17 @@
# P2 等级设定与徽章展示 — 实现计划
> 状态:已完成
> 分支:`rebuild/gitea-ssr`
## 范围
| 能力 | 实现 |
|------|------|
| Admin 设等级 | `POST /admin/users/:id/level``SetUserLevel`Exp 调至门槛) |
| 公开等级 | 既有 `/user/:id``/profile` Lv/Exp |
| 徽章展示 | 用户页 / 资料页列表;访问时 `EvaluateAuto` |
| 防刷分成 | 确认 `suspiciousUnlockPair` 已落地并勾选 `02` |
## 验证
`build.bat`;冒烟:设用户 Lv5 → Exp=200用户页可见等级。