MCPcopy Create free account

hub / github.com/Tron521/codex-console-temp / functions

Functions2,218 in github.com/Tron521/codex-console-temp

↓ 2 callersMethod_handle_otp_verification
处理 OAuth 阶段的邮箱 OTP 验证,返回服务端声明的下一步状态。
src/core/anyauto/oauth_client.py:1489
↓ 2 callersFunction_init_batch_state
初始化批量任务内存状态
src/web/routes/registration.py:1137
↓ 2 callersFunction_is_official_checkout_link
(link: Optional[str])
src/web/routes/payment.py:110
↓ 2 callersMethod_is_openai_otp_mail
判断是否是 OpenAI 验证码邮件。 只看 openai 关键字容易误命中营销/通知邮件,这里增加 OTP 语义词过滤。
src/services/temp_mail.py:234
↓ 2 callersMethod_is_recent_code
(self, order_key: str, code: str, now: Optional[float] = None)
src/services/luckmail_mail.py:210
↓ 2 callersFunction_is_region_block_error_text
(text: Optional[str])
src/web/routes/payment.py:121
↓ 2 callersFunction_jwt_claims_no_verify
解析 JWT ID Token(不验证签名)
src/core/openai/oauth.py:91
↓ 2 callersFunction_make_batch_helpers
返回 add_batch_log 和 update_batch_status 辅助函数
src/web/routes/registration.py:1156
↓ 2 callersMethod_make_request
发送请求并返回 JSON 数据 Args: method: HTTP 方法 path: 请求路径(以 / 开头) retry_on_auth_error: 认证失败时是否重试
src/services/cloud_mail.py:168
↓ 2 callersMethod_mark_email_as_registered
标记邮箱为已注册状态(用于防止重复尝试)
src/core/register.py:2279
↓ 2 callersMethod_mark_registered_email
(self, email: str, extra: Optional[Dict[str, Any]] = None)
src/services/luckmail_mail.py:351
↓ 2 callersFunction_mark_task_paid_pending_sync
(task: BindCardTask, reason: str)
src/web/routes/payment.py:1313
↓ 2 callersFunction_mask_card_number
(number: Optional[str])
src/web/routes/payment.py:1304
↓ 2 callersFunction_normalize_datetime
(value: Any)
src/core/openai/overview.py:304
↓ 2 callersFunction_normalize_mode
(value: Any)
src/web/selfcheck_scheduler.py:44
↓ 2 callersMethod_normalize_offset
(self, value: Any, default: int = 0)
src/services/temp_mail.py:86
↓ 2 callersMethod_oauth_submit_workspace_and_org
提交 workspace 和 organization 选择(带重试)
src/core/anyauto/oauth_client.py:946
↓ 2 callersFunction_parse_dt
(value: Any)
src/core/circuit_breaker.py:33
↓ 2 callersFunction_parse_dt
(value: Any)
src/core/system_selfcheck.py:81
↓ 2 callersFunction_parse_selfcheck_run_id
(task_id: str)
src/web/routes/selfcheck.py:79
↓ 2 callersFunction_parse_third_party_response
(resp)
src/web/routes/payment.py:1391
↓ 2 callersFunction_plan_to_subscription_type
(plan_type: Optional[str])
src/web/routes/accounts.py:532
↓ 2 callersFunction_probe_endpoint
( *, name: str, url: str, method: str = "GET", headers: Optional[Dict[str, str]] = None,
src/core/system_selfcheck.py:141
↓ 2 callersFunction_random_chrome_version
随机选择一个 Chrome 版本
src/core/anyauto/chatgpt_client.py:53
↓ 2 callersFunction_refresh_account_token_for_subscription_check
刷新账号 Access Token(优先 session_token,其次 refresh_token)。
src/web/routes/payment.py:1792
↓ 2 callersMethod_register_password
注册密码
src/core/register.py:2159
↓ 2 callersMethod_register_password_with_retry
Retry password registration when OpenAI returns a generic recoverable 400.
src/core/register.py:2246
↓ 2 callersFunction_registrable_domain
粗略提取可注册域名,用于推断 Sec-Fetch-Site。
src/core/anyauto/utils.py:230
↓ 2 callersMethod_release_claimed_email
(self, email: Optional[str])
src/services/luckmail_mail.py:203
↓ 2 callersMethod_request_admin_mails_with_limit_fallback
/admin/mails 在不同部署版本对 limit 校验不一致。 这里按降级 limit 自动重试,避免直接报 400 Invalid limit。
src/services/temp_mail.py:93
↓ 2 callersFunction_request_checkout_bundle
(account: Account, payload: Dict[str, Any], proxy: Optional[str] = None)
src/core/openai/payment.py:774
↓ 2 callersFunction_request_json
( url: str, headers: Dict[str, str], proxy: Optional[str], timeout_seconds: int = _OVERVIEW_HT
src/core/openai/overview.py:166
↓ 2 callersFunction_request_session_token
( *, proxy_item: Optional[str], with_auth: bool, with_cookies: bool, )
src/web/routes/payment.py:1082
↓ 2 callersMethod_request_temp_token
(self, email: str)
src/services/yyds_mail.py:166
↓ 2 callersFunction_request_text
(url: str, proxy: Optional[str])
src/core/openai/random_billing.py:222
↓ 2 callersFunction_resolve_account_device_id
解析账号 device_id(兼容历史数据): 1) account.device_id(若模型未来扩展该字段) 2) cookies 里的 oai-did 3) extra_data 中的 device_id/oai_did/oai-device-id
src/web/routes/accounts.py:372
↓ 2 callersFunction_resolve_chatgpt_account_id
(account: Account)
src/core/openai/payment.py:520
↓ 2 callersFunction_resolve_database_url
()
alembic/env.py:19
↓ 2 callersFunction_response_with_login_cookies
(workspace_id="ws-1", session_token="session-1")
tests/test_registration_engine.py:175
↓ 2 callersMethod_retrigger_login_otp
在“登录验证码”阶段重触发 OTP 发送。 优先复用登录链路(login_start -> login_password),避免误走注册 OTP 流程。
src/core/register.py:2109
↓ 2 callersFunction_run_batch_validate_tokens
Run token validation synchronously so it can be reused by schedulers.
src/web/routes/accounts.py:1988
↓ 2 callersFunction_select_rate_limit_window
(rate_limit: Dict[str, Any], target_window: str)
src/core/openai/overview.py:451
↓ 2 callersMethod_should_force_failed_record
(self, reason: str)
src/services/luckmail_mail.py:368
↓ 2 callersMethod_should_retry
(message: str)
src/core/anyauto/register_flow.py:98
↓ 2 callersFunction_start_batch_registration_internal
启动普通批量注册任务。
src/web/routes/registration.py:1678
↓ 2 callersFunction_start_outlook_batch_registration_internal
启动 Outlook 批量注册任务。
src/web/routes/registration.py:1744
↓ 2 callersFunction_start_single_registration_internal
启动单次注册任务。
src/web/routes/registration.py:1639
↓ 2 callersMethod_state_is_add_phone
(self, state: FlowState)
src/core/anyauto/oauth_client.py:246
↓ 2 callersMethod_state_requires_navigation
(self, state: FlowState)
src/core/anyauto/oauth_client.py:250
↓ 2 callersMethod_state_requires_navigation
(self, state: FlowState)
src/core/anyauto/chatgpt_client.py:263
↓ 2 callersMethod_state_supports_workspace_resolution
(self, state: FlowState)
src/core/anyauto/oauth_client.py:266
↓ 2 callersMethod_submit_authorize_continue
提交邮箱,获取 OAuth 流程的第一页状态。
src/core/anyauto/oauth_client.py:419
↓ 2 callersFunction_try_click_challenge_continue
挑战页上的常见继续按钮兜底点击(3DS/hCaptcha)。
src/core/openai/browser_bind.py:368
↓ 2 callersFunction_try_click_hcaptcha_checkbox
(page)
src/core/openai/browser_bind.py:337
↓ 2 callersFunction_wait_for_cloudflare
(page, max_wait_seconds: int)
src/core/openai/browser_bind.py:789
↓ 2 callersFunction_wait_for_stripe_iframe
(page, max_wait_seconds: int)
src/core/openai/browser_bind.py:812
↓ 2 callersFunctionapplyValidatedStatuses
(taskOrResult)
static/js/accounts.js:181
↓ 2 callersFunctionbatch_upload_to_codex2api
批量上传指定 ID 的账号到 Codex2API 平台。
src/core/upload/codex2api_upload.py:103
↓ 2 callersFunctionbatch_upload_to_new_api
批量上传指定 ID 的账号到 new-api 平台。
src/core/upload/new_api_upload.py:181
↓ 2 callersFunctionbatch_upload_to_sub2api
批量上传指定 ID 的账号到 Sub2API 平台 Returns: 包含成功/失败/跳过统计和详情的字典
src/core/upload/sub2api_upload.py:136
↓ 2 callersFunctionbuildCurrentRegistrationConfig
()
static/js/app.js:696
↓ 2 callersFunctionbuildParsedSummary
(parsed)
static/js/payment.js:603
↓ 2 callersFunctionbuild_auth_token
(password: str, secret_key: str)
src/web/auth.py:29
↓ 2 callersFunctionbuild_browser_headers
构造更接近真实 Chrome 有头浏览器的请求头。
src/core/anyauto/utils.py:277
↓ 2 callersFunctioncan_connect_tcp
(host: str, port: int, timeout_seconds: float = 1.5)
start_webui.py:42
↓ 2 callersMethodcheck_health
检查服务健康状态 Returns: 服务是否健康 Note: 此方法不应抛出异常,应捕获异常并返回 False
src/services/base.py:138
↓ 2 callersMethodcheck_sentinel
检查 Sentinel 拦截 Args: did: Device ID proxies: 代理配置 Returns: Sentinel token 或 None
src/core/http_client.py:353
↓ 2 callersFunctioncloseAutoQuickRefreshModal
()
static/js/accounts.js:559
↓ 2 callersFunctioncloseCodex2apiServiceModal
()
static/js/settings.js:1677
↓ 2 callersFunctioncloseCpaServiceModal
()
static/js/settings.js:1354
↓ 2 callersFunctioncloseNewApiServiceModal
()
static/js/settings.js:1831
↓ 2 callersFunctioncloseProxyModal
()
static/js/settings.js:1051
↓ 2 callersFunctioncloseSub2ApiServiceModal
()
static/js/settings.js:1526
↓ 2 callersMethodcreate_email
创建新邮箱地址 Args: config: 配置参数,如邮箱前缀、域名等 Returns: 包含邮箱信息的字典,至少包含: - email: 邮箱地址
src/services/base.py:60
↓ 2 callersMethodcreate_email
(self, config: Dict[str, Any] = None)
src/services/duck_mail.py:178
↓ 2 callersFunctiondecode_jwt_payload
解析 JWT token 的 payload 部分
src/core/anyauto/utils.py:97
↓ 2 callersMethoddisconnect
断开 IMAP 连接
src/services/outlook/providers/imap_new.py:134
↓ 2 callersMethoddisconnect
断开 IMAP 连接
src/services/outlook/providers/imap_old.py:143
↓ 2 callersFunctiondisconnectBatchWebSocket
()
static/js/app.js:2491
↓ 2 callersFunctiondisconnectWebSocket
()
static/js/app.js:1422
↓ 2 callersFunctiondispatch_registration_config
按统一注册配置分发执行注册任务。
src/web/routes/registration.py:1843
↓ 2 callersFunctiondocker_ready
()
start_webui.py:97
↓ 2 callersMethodenable
启用提供者
src/services/outlook/base.py:137
↓ 2 callersFunctionensure_new_api_login
校验 new-api 管理员登录状态。
src/core/upload/new_api_upload.py:93
↓ 2 callersMethodextract_verification_code
从邮件中提取验证码 优先级: 1. 从主题提取(6位数字) 2. 从正文用语义正则提取(如 "code is 123456") 3. 兜底:任意 6 位数字 Args: em
src/services/outlook/email_parser.py:67
↓ 2 callersFunctionfetch_codex_overview
从 OpenAI 接口抓取 Codex 账号概览(计划类型 + 配额)
src/core/openai/overview.py:788
↓ 2 callersFunctionfetch_dynamic_proxy
从代理 API 获取代理 URL Args: api_url: 代理 API 地址,响应应为代理 URL 字符串或含代理 URL 的 JSON api_key: API 密钥(可选) api_key_header: API 密钥请求
src/core/dynamic_proxy.py:13
↓ 2 callersFunctionfillAutoQuickRefreshForm
(options = {})
static/js/accounts.js:500
↓ 2 callersFunctionformatAutoMonitorTimestamp
(value)
static/js/app.js:1724
↓ 2 callersFunctionformatScheduleDateTime
(value)
static/js/app.js:907
↓ 2 callersFunctiongenerate_pkce
生成 PKCE code_verifier 和 code_challenge
src/core/anyauto/utils.py:87
↓ 2 callersFunctiongenerate_plus_checkout_bundle
生成 Plus checkout 全量信息(含 checkout_session_id/publishable_key)。
src/core/openai/payment.py:826
↓ 2 callersMethodgenerate_requirements_token
生成 requirements token(不需要服务端参数)
src/core/anyauto/sentinel_token.py:133
↓ 2 callersFunctiongenerate_team_checkout_bundle
生成 Team checkout 全量信息(含 checkout_session_id/publishable_key)。
src/core/openai/payment.py:845
↓ 2 callersFunctiongetAvailableEfunPoolCodes
()
static/js/payment.js:1728
↓ 2 callersFunctiongetCheckoutPayload
()
static/js/payment.js:2065
↓ 2 callersFunctiongetPausableBatchTasks
()
static/js/accounts.js:68
↓ 2 callersFunctiongetReconnectDelay
(attempt)
static/js/app.js:1238
↓ 2 callersFunctiongetRepairName
(key)
static/js/selfcheck.js:47
↓ 2 callersFunctiongetResumableBatchTasks
()
static/js/accounts.js:72
← previousnext →501–600 of 2,218, ranked by callers