From 23b456e1316932eedcf3be96ad35c639a4510be7 Mon Sep 17 00:00:00 2001 From: zcr Date: Fri, 6 Feb 2026 12:01:55 +0800 Subject: [PATCH] =?UTF-8?q?feat=201.=E5=A2=9E=E5=8A=A0=20=E5=BB=BA?= =?UTF-8?q?=E8=AE=AE=E8=AF=8D=20=E6=9C=BA=E5=88=B6=202.=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E7=94=9F=E5=9B=BE=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/config.py b/src/core/config.py index b7fff43..d6016b2 100644 --- a/src/core/config.py +++ b/src/core/config.py @@ -7,7 +7,7 @@ class Settings(BaseSettings): 应用配置类。Pydantic Settings 会自动从环境变量和 .env 文件中加载这些值。 """ model_config = SettingsConfigDict( - env_file='.env_local', + env_file='.env', env_file_encoding='utf-8', extra='ignore' # 忽略环境变量中多余的键 )