diff --git a/.gitignore b/.gitignore index 519c552..f56b660 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,8 @@ Thumbs.db *.sublime-* # 环境变量 / 密钥 -# .env +.env +**/.env .env.* !.env.example *.pem diff --git a/backend/app/config.py b/backend/app/config.py index e8094f3..235a7af 100644 --- a/backend/app/config.py +++ b/backend/app/config.py @@ -28,6 +28,10 @@ class Settings(BaseSettings): tencent_secret_key: str = "" tencent_region: str = "ap-guangzhou" + wx_mini_appid: str = "" + wx_mini_secret: str = "" + wx_mini_mock_phone: str = "13800000000" + @property def cors_origins(self) -> list[str]: return [origin.strip() for origin in self.allowed_origins.split(",") if origin.strip()]