Support temporary email PIN code rate and modify the suffix, and by default install PyInstaller.

This commit is contained in:
LOVE
2025-02-03 21:07:29 +08:00
parent 520769457d
commit 0395153b81
4 changed files with 24 additions and 5 deletions

View File

@@ -25,6 +25,8 @@ class Config:
self.imap = False
self.temp_mail = os.getenv("TEMP_MAIL", "").strip().split("@")[0]
self.temp_mail_epin = os.getenv("TEMP_MAIL_EPIN", "").strip()
self.temp_mail_ext = os.getenv("TEMP_MAIL_EXT", "").strip()
self.domain = os.getenv("DOMAIN", "").strip()
# 如果临时邮箱为null则加载IMAP
@@ -42,6 +44,14 @@ class Config:
return self.temp_mail
def get_temp_mail_epin(self):
return self.temp_mail_epin
def get_temp_mail_ext(self):
return self.temp_mail_ext
def get_imap(self):
if not self.imap:
return False