This commit is contained in:
sjk
2025-11-28 15:18:10 +08:00
parent ad4a600af9
commit 5683f35942
188 changed files with 53680 additions and 1062 deletions

View File

@@ -187,6 +187,15 @@ func getConfigName(env string) string {
return "config.test"
case "production", "prod":
return "config.prod"
// 生产环境 - 中国区
case "prod-cn", "production-cn":
return "config.prod-cn"
// 生产环境 - 美国区
case "prod-us", "production-us":
return "config.prod-us"
// 生产环境 - 欧洲区
case "prod-eu", "production-eu":
return "config.prod-eu"
default:
// 如果环境不匹配,尝试使用默认配置文件
if _, err := os.Stat("./configs/config.yaml"); err == nil {