docs: 更新 README 與 INFRA.md 記錄 generated_at、SWR 重試、updated badge

- README: /scan response 示例補 generated_at 欄位與說明
- INFRA.md:
  - 演進紀錄新增 3.12(前端空資料 auto-retry)、3.13(UI 顯示資料更新時間、後端加 generated_at)
  - 3.12 記錄 webhook pipeline 第一次真實使用(由前端 auto-retry 的 push 觸發)
  - follow-up 追加 pokemon-radar-api 後端自動部署的想法

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-20 11:21:02 +08:00
parent 0264a35b8d
commit ce9a944b45
2 changed files with 30 additions and 0 deletions

View File

@@ -92,12 +92,15 @@ Secrets 放 `.env`gitignore。本機與生產共用同一份格式、只
"ttl": 281,
"count_raw": 79,
"count_filtered": 24,
"generated_at": "2026-04-20T11:14:32+08:00",
"items": [ /* id, name, gender, iv_pct, cp, level, latitude, longitude,
remaining, expire_at, fast_move, charge_move, is_perfect, ... */ ],
"debug": { "notes": [...], "redis_ttl": 281 }
}
```
`generated_at` 是 fetcher 寫入 Redis 那份資料時的時間戳ISO 8601台北時區。空資料分支會是 `null`
### Redis schema
Key `pokemon:radar:latest`String(JSON)TTL 由 `REDIS_TTL` 控制。Value 結構:
```json