修复邮件系统中的re模块引用问题,解决变量未定义错误
This commit is contained in:
@@ -63,8 +63,6 @@ class Email(Base):
|
|||||||
"cursor" in self.sender.lower()
|
"cursor" in self.sender.lower()
|
||||||
):
|
):
|
||||||
logger.info("检测到Cursor验证邮件")
|
logger.info("检测到Cursor验证邮件")
|
||||||
# 针对Cursor验证邮件的特定验证码格式
|
|
||||||
import re
|
|
||||||
# 从HTML中提取6位数字验证码
|
# 从HTML中提取6位数字验证码
|
||||||
cursor_patterns = [
|
cursor_patterns = [
|
||||||
r'(\d{6})</div>', # 匹配Cursor邮件中的6位数字验证码格式
|
r'(\d{6})</div>', # 匹配Cursor邮件中的6位数字验证码格式
|
||||||
|
|||||||
Reference in New Issue
Block a user