spark-server/docs/daily/2026-09-24-change-list-sleepheart.md
DESKTOP-L8OUL9F\gfl0034 74a57ed25c feat(subscription): 对齐 SleepHeart USD 定价与 IAP product_id
默认周/月/年卡改为 $1/$3/$12,季卡 $8;同步迁移、客户端默认方案与 popadmin 配置页。
2026-09-24 22:21:37 +08:00

35 lines
1.4 KiB
Markdown
Raw Permalink 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-09-24
## 13:50 — SleepHeart 客户端能力与 popadmin
### 概要
- App 展示名统一为 **SleepHeart**;Bundle ID 保持 `health.wyrs365.com`;ASC App `6815533078`;Team `49S9UL5MN4`
- spark-server 新增法律文档 / 反馈 / 订阅套餐 / 密码登录 API,并在 popadmin 增加管理页
- 订阅默认价 **USD $1/周 · $3/月 · $12/年**(保留季卡 $8);IAP `health.wyrs365.com.vip.{week|month|quarter|year}`
- HealthiOS 将原先 mock 的密码登录、反馈、订阅配置改为对接真接口(失败仍可 mock 回退)
### 变更范围
| 类型 | 说明 |
|------|------|
| 功能 | 客户端配置与密码登录 |
| 管理端 | popadmin 隐私协议 / 订阅配置 / App反馈 |
| 客户端 | SleepHeart 品牌与 API 对接 |
### 主要文件
- `migrations/0023_client_legal_feedback_subscription.sql` — 表与种子数据
- `migrations/0025_subscription_plans_usd_pricing.sql` — USD 定价与 IAP product_id 对齐
- `internal/module/client/**` — 业务与仓储
- `internal/transport/http/handler/client`、`handler/admin/client.go`、`router*.go`、`auth.go`
- `deploy/popadmin/popadmin.js` — 三页管理 UI(订阅配置可编辑默认价)
- `HealthiOS` pbxproj / L10n / AuthService / APIModels / PaywallView
### 验证
- `go test`:本机 PATH 无 go,未在本会话跑通 make test(需部署环境验证)
- iOS:UI 门控已有;网络层已改 path,需 xcodebuild 再确认
EOF