feat: Update TEMP_MAIL processing in config.py to extract username before '@'

This commit is contained in:
chengchongzhen
2025-01-15 18:33:30 +08:00
parent 0c52882a9e
commit 77aea54bcf

View File

@@ -23,7 +23,7 @@ class Config:
# 加载 .env 文件 # 加载 .env 文件
load_dotenv(dotenv_path) load_dotenv(dotenv_path)
self.temp_mail = os.getenv("TEMP_MAIL", "").strip() self.temp_mail = os.getenv("TEMP_MAIL", "").strip().split("@")[0]
self.domain = os.getenv("DOMAIN", "").strip() self.domain = os.getenv("DOMAIN", "").strip()
self.check_config() self.check_config()