it0/it0_app/lib/core
hailin e6f864d409 fix(version-service+gateway+app): fix APK download 404 and SHA-256 false failure
Three coordinated fixes to make in-app APK download work end-to-end:

1. version-service/main.ts: serve uploaded files as static assets via
   NestExpressApplication.useStaticAssets('/data/versions', prefix:
   '/downloads/versions'), so GET /downloads/versions/{platform}/{file}
   returns the actual APK stored in the Docker volume.

2. kong.yml: add /downloads/versions route to Kong so requests from
   the Flutter app can reach version-service through the API gateway.
   Previously only /api/v1/versions and /api/app/version were routed;
   the download URL returned by the check endpoint was unreachable (404).

3. download_manager.dart: skip SHA-256 verification when sha256Expected
   is empty string. The check endpoint always returns sha256:"" because
   version-service doesn't store file hashes. The previous code compared
   actual_hash == "" which always failed, causing the downloaded file to
   be deleted after a successful download.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-06 06:04:27 -08:00
..
audio fix: set interleaved=true for PcmPlayer streaming playback 2026-02-25 06:59:06 -08:00
config fix: use domain names for API access, China IP for LiveKit 2026-03-01 21:44:25 -08:00
errors feat: 生产级 API 错误处理 — 重试拦截器、友好错误提示、网络监测、WebSocket 退避 2026-02-23 04:01:04 -08:00
network fix: properly close WebSocket with subscription cancel + fire-and-forget 2026-02-25 03:45:43 -08:00
router feat: implement complete commercial monetization loop (Phases 1-4) 2026-03-03 21:09:17 -08:00
services feat: 补齐大厂级网络层 — 401并发锁、请求去重、结构化错误日志 2026-02-23 04:05:53 -08:00
tenant Initial commit: IT0 AI-powered server cluster operations platform 2026-02-08 22:54:37 -08:00
theme ui: transparent compact AppBar (64dp → 44dp) 2026-02-28 05:20:23 -08:00
updater fix(version-service+gateway+app): fix APK download 404 and SHA-256 false failure 2026-03-06 06:04:27 -08:00
utils Initial commit: IT0 AI-powered server cluster operations platform 2026-02-08 22:54:37 -08:00
widgets feat: 生产级 API 错误处理 — 重试拦截器、友好错误提示、网络监测、WebSocket 退避 2026-02-23 04:01:04 -08:00