From 7ce80bd2b22ccc8d434223e072f91cf4118443f3 Mon Sep 17 00:00:00 2001 From: chengchongzhen <15939054361@163.com> Date: Mon, 13 Jan 2025 13:31:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=AF=B9=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=8F=98=E9=87=8F=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 23625aa..111b8bf 100644 --- a/config.py +++ b/config.py @@ -29,11 +29,10 @@ class Config: self.check_config() def get_temp_mail(self): - logging.info(f"\033[32m临时邮箱: {self.temp_mail}\033[0m") + return self.temp_mail def get_domain(self): - logging.info(f"\033[32m域名: {self.domain}\033[0m") return self.domain def check_config(self): @@ -42,6 +41,9 @@ class Config: if not self.check_is_valid(self.domain): raise ValueError("域名未配置,请在 .env 文件中设置 DOMAIN") + logging.info(f"\033[32m临时邮箱: {self.temp_mail}\033[0m") + logging.info(f"\033[32m域名: {self.domain}\033[0m") + def check_is_valid(self, str): return len(str.strip()) > 0