refactor: 重构配置管理,使用强类型配置结构并更新相关代码

This commit is contained in:
lixiangwuxian
2025-03-08 17:08:28 +08:00
parent a36008847c
commit 79f62f1b7f
4 changed files with 24 additions and 11 deletions

View File

@@ -19,8 +19,8 @@ var SteamAPIKey = ""
var ProxyAddr = ""
func init() {
SteamAPIKey = config.ConfigManager.GetProperty("steam_api_key")
ProxyAddr = config.ConfigManager.GetProperty("proxy_addr")
SteamAPIKey = config.ConfigManager.GetConfig().SteamApiKey
ProxyAddr = config.ConfigManager.GetConfig().ProxyAddr
}
func init() {