From 77aea54bcfefe64dba45da0ffc27d03aafead963 Mon Sep 17 00:00:00 2001 From: chengchongzhen <15939054361@163.com> Date: Wed, 15 Jan 2025 18:33:30 +0800 Subject: [PATCH] feat: Update TEMP_MAIL processing in config.py to extract username before '@' --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index 111b8bf..8b7e710 100644 --- a/config.py +++ b/config.py @@ -23,7 +23,7 @@ class Config: # 加载 .env 文件 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.check_config()