- Removed manifest link from index.html.

- Updated script and module preload links in index.html for optimized loading.
- Modified service worker (sw.js) to reflect new asset revisions and improve caching strategy.
- Updated configuration documentation in BT_RUN.md, docker-RUN.md, and manual_RUN.md to clarify currency rate settings.
This commit is contained in:
line-6000
2026-04-24 19:10:11 +08:00
parent 89be1fc967
commit 485059f60e
182 changed files with 509 additions and 241 deletions
+1 -4
View File
@@ -22,7 +22,7 @@ func InitApp() {
log.Init()
dao.Init()
// Wire settings-table lookups into the config package so
// GetRateApiUrl / GetUsdtRate prefer DB-backed overrides.
// GetRateApiUrl / GetUsdtRate can consult admin-configured values.
config.SettingsGetString = func(key string) string {
return data.GetSettingString(key, "")
}
@@ -36,9 +36,6 @@ func InitApp() {
}
}
}
// config.Init() computes RateApiUrl before SettingsGetString is
// installed, so refresh the cache once DB-backed settings are available.
config.RateApiUrl = config.GetRateApiUrl()
// Seed admin account and JWT secret so the management console is
// immediately usable on a fresh install. Both are idempotent.
_, isNew, err := data.EnsureDefaultAdmin()