更新文档

This commit is contained in:
2026-04-11 15:51:08 +08:00
parent 7a8dd4cea0
commit a257a8a912
6 changed files with 121 additions and 56 deletions

View File

@@ -19,17 +19,41 @@
## 2. 客户端主流程
1. `GET /api/client/bootstrap`
2. `POST /api/auth/login/exchange`
3. `Bearer access_token` 调用:
1. 可选:`GET /api/client/time`
2. `GET /api/client/bootstrap`
3. `POST /api/auth/login/exchange`
4.`Bearer access_token` 调用:
- `GET /api/player/me`
- `GET /api/announcements`
- 排行榜、存档、空间等业务接口
4. `GET /api/config/current` 为公开接口,登录前后都可调用
5. `GET /api/config/current` 为公开接口,登录前后都可调用
## 3. 初始化
### 3.1 获取初始化信息
### 3.1 获取平台时间
`GET /api/client/time`
说明:
- 平台级匿名授时接口
- 不需要 `game_key`
- 不依赖任何项目配置
- 返回 UTC 时间,适合客户端启动时做统一对时
示例:
```bash
curl "https://brisk.lightyears.ltd/api/client/time"
```
返回重点:
- `server_time`
- `server_unix`
- `server_unix_ms`
### 3.2 获取初始化信息
`GET /api/client/bootstrap`