team-mail
This commit is contained in:
@@ -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