fix: 调整初始化顺序以避免写入日志失败

This commit is contained in:
RedwindA
2025-07-12 02:23:10 +08:00
parent 22a0ed0ee2
commit b7f24b428b

View File

@@ -168,11 +168,11 @@ func InitResources() error {
common.SysLog("No .env file found, using default environment variables. If needed, please create a .env file and set the relevant variables.")
}
common.SetupLogger()
// 加载环境变量
common.InitEnv()
common.SetupLogger()
// Initialize model settings
ratio_setting.InitRatioSettings()