team-mail
This commit is contained in:
@@ -1528,7 +1528,7 @@ def run_main_process():
|
||||
print("="*60 + "\n")
|
||||
return
|
||||
email_domain = random.choice(domains)
|
||||
email = f"{random_str}{email_domain}"
|
||||
email = f"team-{random_str}{email_domain}"
|
||||
# 生成符合要求的密码:大小写字母+数字+特殊字符,至少12位
|
||||
password = ''.join(random.choices(string.ascii_uppercase, k=2)) + \
|
||||
''.join(random.choices(string.ascii_lowercase, k=8)) + \
|
||||
@@ -1923,7 +1923,7 @@ def run_single_registration(progress_callback=None, step_callback=None) -> dict:
|
||||
# 生成账号信息
|
||||
random_str = ''.join(random.choices(string.ascii_lowercase + string.digits, k=15))
|
||||
email_domain = random.choice(domains)
|
||||
email = f"{random_str}{email_domain}"
|
||||
email = f"team-{random_str}{email_domain}"
|
||||
password = ''.join(random.choices(string.ascii_uppercase, k=2)) + \
|
||||
''.join(random.choices(string.ascii_lowercase, k=8)) + \
|
||||
''.join(random.choices(string.digits, k=2)) + \
|
||||
@@ -2325,7 +2325,7 @@ def run_single_registration_api(progress_callback=None, step_callback=None, prox
|
||||
# 生成账号信息
|
||||
random_str = ''.join(random.choices(string.ascii_lowercase + string.digits, k=15))
|
||||
email_domain = random.choice(domains)
|
||||
email = f"{random_str}{email_domain}"
|
||||
email = f"team-{random_str}{email_domain}"
|
||||
password = ''.join(random.choices(string.ascii_uppercase, k=2)) + \
|
||||
''.join(random.choices(string.ascii_lowercase, k=8)) + \
|
||||
''.join(random.choices(string.digits, k=2)) + \
|
||||
|
||||
@@ -957,12 +957,12 @@ def get_random_domain() -> str:
|
||||
|
||||
def generate_random_email(prefix_len: int = 8) -> str:
|
||||
prefix = ''.join(random.choices(string.ascii_lowercase + string.digits, k=prefix_len))
|
||||
return f"{prefix}oaiteam@{get_random_domain()}"
|
||||
return f"team-{prefix}oaiteam@{get_random_domain()}"
|
||||
|
||||
|
||||
def generate_email_for_user(username: str) -> str:
|
||||
safe = re.sub(r'[^a-zA-Z0-9]', '', username.lower())[:20]
|
||||
return f"{safe}oaiteam@{get_random_domain()}"
|
||||
return f"team-{safe}oaiteam@{get_random_domain()}"
|
||||
|
||||
|
||||
def get_team(index: int = 0) -> dict:
|
||||
|
||||
@@ -426,7 +426,7 @@ def generate_random_email() -> str:
|
||||
"""生成随机邮箱地址: {random_str}oaiteam@{random_domain}"""
|
||||
random_str = ''.join(random.choices(string.ascii_lowercase + string.digits, k=8))
|
||||
domain = get_random_domain()
|
||||
email = f"{random_str}oaiteam@{domain}"
|
||||
email = f"team-{random_str}oaiteam@{domain}"
|
||||
log.success(f"生成邮箱: {email}")
|
||||
return email
|
||||
|
||||
@@ -647,7 +647,7 @@ def unified_generate_email() -> str:
|
||||
if current_provider == "gptmail":
|
||||
# 生成随机前缀 + oaiteam 后缀,确保不重复
|
||||
random_str = ''.join(random.choices(string.ascii_lowercase + string.digits, k=8))
|
||||
prefix = f"{random_str}-oaiteam"
|
||||
prefix = f"team-{random_str}-oaiteam"
|
||||
domain = get_random_gptmail_domain() or None
|
||||
email, error = gptmail_service.generate_email(prefix=prefix, domain=domain)
|
||||
if email:
|
||||
@@ -670,7 +670,7 @@ def unified_create_email() -> tuple[str, str]:
|
||||
if current_provider == "gptmail":
|
||||
# 生成随机前缀 + oaiteam 后缀,确保不重复
|
||||
random_str = ''.join(random.choices(string.ascii_lowercase + string.digits, k=8))
|
||||
prefix = f"{random_str}-oaiteam"
|
||||
prefix = f"team-{random_str}-oaiteam"
|
||||
domain = get_random_gptmail_domain() or None
|
||||
email, error = gptmail_service.generate_email(prefix=prefix, domain=domain)
|
||||
if email:
|
||||
|
||||
Reference in New Issue
Block a user