spark-server/docs/daily/2026-10-26-change-list.md
DESKTOP-L8OUL9F\gfl0034 753c276496 feat: PopAdmin 拉取管理、签到能量 API 与图片 150KiB 硬上限
管理端按用户查询开启通讯录/相册/媒体拉取;服务端写入路径自动压图;新增 /v1/sign 与 /v1/energy。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-02 12:44:06 +08:00

35 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-10-26
## 13:50 — 签到 / 补签 / 能量查询
### 概要
- 公开 OpenAPI 与服务端补齐签到月历、当日签到、补签资格/执行、能量余额与明细。
- 客户端(SparkApk / wyPOPandroid)将 `SparkUnavailable` 换成 `/v1/sign*`、`/v1/energy*`,避免失败后 `initData` 白屏。
### 变更范围
| 类型 | 说明 |
|------|------|
| 功能 | `energy` 模块 + HTTP `/v1/sign`、`/v1/energy` |
| 文档 | `openapi.yaml` 增加 sign / energy 标签与路径 |
| 客户端 | SignInManager / PayManager / SignInActivity 适配 |
### 主要文件
- `migrations/0034_sign_energy.sql` — 钱包 / 流水 / 签到表
- `internal/module/energy/**` — entity / model / logic
- `internal/transport/http/handler/energy/handler.go`、`router.go`、`server.go`、`bootstrap/app.go`
- `internal/transport/http/docs/openapi.yaml`
- `SparkApk` / `wyPOPandroid`:`SignInManager.kt`、`PayManager.kt`、`SignInActivity.kt`
### 验证
- `go test ./internal/module/energy/logic` pass
- 全量 `make test` / 部署:见任务简报
### 风险
- 补签激励视频闸门未启用(`need_watch_video_count=0`);抽奖仍 unavailable。
- 需 migrate `0034` 后能量接口才有持久化。