This commit is contained in:
ygm1881
2022-04-17 19:09:32 +08:00
parent b14a69e312
commit 2e5416aa4d
3 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -35,8 +35,8 @@ def send_code_email(email, send_type="register"):
code = "".join([str(random.randint(0, 9)) for i in range(4)])
email_record.code = code
email_record.email = email
email_record.send_type = send_type
email_record.send_time = datetime.datetime.now()
# email_record.send_type = send_type
# email_record.send_time = datetime.datetime.now()
email_record.save()
# 初始化为空
email_title = ""