chore(setting): add check for ALLOWED_ORIGINS environment variable

新增对ALLOWED_ORIGINS环境变量的存在性检查,完善环境变量校验逻辑
This commit is contained in:
sun
2026-06-27 14:42:55 +08:00
parent 361a9d6401
commit 82cc68e7ee
+1
View File
@@ -79,6 +79,7 @@ func CheckEnvironmentVariables() map[string]interface{} {
"BYTEDANCE_TTS_TIMEOUT": os.Getenv("BYTEDANCE_TTS_TIMEOUT") != "",
"BYTEDANCE_TTS_MODEL": os.Getenv("BYTEDANCE_TTS_MODEL") != "",
"OPENAI_TTS_API_KEY": os.Getenv("OPENAI_TTS_API_KEY") != "",
"ALLOWED_ORIGINS": os.Getenv("ALLOWED_ORIGINS") != "",
"PORT": os.Getenv("PORT") != "",
}