mirror of
https://github.com/GMWalletApp/epusdt.git
synced 2026-07-07 18:26:16 +00:00
- 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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user