MCPcopy Create free account

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

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

↓ 3 callersFunctionloadSub2ApiServices
()
static/js/settings.js:1475
↓ 3 callersFunctionmake_account
(**kwargs)
tests/test_new_api_upload.py:18
↓ 3 callersFunctionnormalizeStatus
(status)
static/js/selfcheck.js:21
↓ 3 callersFunctionnormalizeVendorRedeemCode
(raw)
static/js/payment.js:1656
↓ 3 callersFunctiononBillingCountryChanged
()
static/js/payment.js:646
↓ 3 callersFunctionpersistBillingProfileNonSensitive
()
static/js/payment.js:732
↓ 3 callersFunctionpopulateAutoRegistrationEmailServiceOptions
(selectedId = 0)
static/js/app.js:1111
↓ 3 callersFunctionquote_identifier
(connection: Connection, value: str)
scripts/migrate_sqlite_to_postgres.py:108
↓ 3 callersFunctionrenderRepairResults
(repairs)
static/js/selfcheck.js:125
↓ 3 callersMethodrequest_domain_task_cancel
(self, domain: str, task_id: str)
src/web/task_manager.py:573
↓ 3 callersMethodrequest_run_now
(self, reason: str = "manual")
src/web/selfcheck_scheduler.py:134
↓ 3 callersFunctionrun_command
(command: Iterable[str], *, capture_output: bool = False, check: bool = True)
start_webui.py:83
↓ 3 callersFunctionsetLogsSummary
()
static/js/logs.js:57
↓ 3 callersFunctionsetRegistrationConfigToForm
(config)
static/js/app.js:827
↓ 3 callersFunctionset_setting
设置或更新配置项
src/database/crud.py:415
↓ 3 callersFunctionshowVendorProgressPanel
(show = true)
static/js/payment.js:1317
↓ 3 callersMethodstart
(self)
src/core/auto_registration.py:151
↓ 3 callersFunctionstartAutoRegistrationMonitor
()
static/js/app.js:1816
↓ 3 callersFunctionstopBatchWebSocketHeartbeat
()
static/js/app.js:2513
↓ 3 callersFunctionstopWebSocketHeartbeat
()
static/js/app.js:1444
↓ 3 callersFunctionswitchPaymentTab
(tab)
static/js/payment.js:2054
↓ 3 callersFunctionupdateAutoMonitorHeader
(status, lastCheckedAt)
static/js/app.js:1738
↓ 3 callersFunctionupdateScheduleTriggerFields
()
static/js/app.js:689
↓ 3 callersFunctionupdateSelectedAccountEmailLabel
()
static/js/payment.js:1243
↓ 3 callersFunctionupload_to_codex2api
上传账号列表到 Codex2API 平台。
src/core/upload/codex2api_upload.py:41
↓ 3 callersFunctionupload_to_cpa
上传单个账号到 CPA 管理平台(不走代理) Args: token_data: Token JSON 数据 proxy: 保留参数,不使用(CPA 上传始终直连) api_url: 指定 CPA API URL(优先于全局配置)
src/core/upload/cpa_upload.py:115
↓ 3 callersFunctionupload_to_new_api
上传账号列表到 new-api 平台。
src/core/upload/new_api_upload.py:152
↓ 3 callersFunctionupload_to_sub2api
上传账号列表到 Sub2API 平台(不走代理) Args: accounts: 账号模型实例列表 api_url: Sub2API 地址,如 http://host api_key: Admin API Key(x-api-key
src/core/upload/sub2api_upload.py:19
↓ 3 callersMethodvalidate
验证账户信息是否有效
src/services/outlook_legacy_mail.py:80
↓ 3 callersMethodvalidate
验证账户信息是否有效
src/services/outlook/account.py:31
↓ 3 callersMethodwait_for_verification_code
(self, email, timeout=60, otp_sent_at=None, exclude_codes=None)
src/core/anyauto/register_flow.py:31
↓ 3 callersFunctionwatchAccountTask
(taskId, onUpdate, maxWaitMs = 20 * 60 * 1000)
static/js/accounts.js:115
↓ 2 callersFunction_add_cookies_resilient
(context, cookies: List[dict], stage: str)
src/core/openai/browser_bind.py:181
↓ 2 callersFunction_analyze_me_payload
(data: Any, source_prefix: str)
src/core/openai/payment.py:986
↓ 2 callersFunction_analyze_usage_payload
(data: Any, source_prefix: str)
src/core/openai/payment.py:1051
↓ 2 callersMethod_append_log
(self, level: str, message: str, when: Optional[datetime] = None)
src/web/selfcheck_scheduler.py:90
↓ 2 callersFunction_assess_third_party_submission_result
第三方绑卡结果三态判定: - success: 已明确支付成功(如 payment_status=paid) - pending: 已提交但仍需用户挑战/等待异步处理 - failed: 明确失败
src/web/routes/payment.py:1545
↓ 2 callersMethod_bootstrap_chatgpt_signin_for_session
对齐 ABCard 的补会话路径: csrf -> signin/openai -> 跟随跳转 -> auth/session,目标是拿到 session_token。
src/core/register.py:1123
↓ 2 callersFunction_bootstrap_session_token_for_local_auto
尝试为 local_auto 自动补齐 session token(避免 cdp_session_missing)。
src/web/routes/payment.py:1047
↓ 2 callersFunction_build_manager
(db_name: str)
tests/test_outlook_hotmail_import.py:11
↓ 2 callersMethod_build_password
(length: int)
src/core/anyauto/register_flow.py:85
↓ 2 callersFunction_build_playwright_cookie_items
构造可被 Playwright 接受的 cookie 列表: - 过滤属性项/非法名称 - 仅注入安全白名单 cookie - __Host- 前缀不携带 domain(避免 Invalid cookie fields)
src/core/openai/browser_bind.py:128
↓ 2 callersFunction_build_proxy_candidates
代理候选顺序: 1) 显式传入 2) 账号历史代理(注册时成功线路) 3) 系统全局代理 4) 直连(可选)
src/web/routes/payment.py:146
↓ 2 callersFunction_build_running_run_payload
()
src/web/routes/selfcheck.py:92
↓ 2 callersFunction_build_sqlalchemy_url
(database_url: str)
src/database/session.py:18
↓ 2 callersMethod_cache_account
(self, account_info: Dict[str, Any])
src/services/yyds_mail.py:139
↓ 2 callersMethod_claim_email
(self, email: Optional[str], extra: Optional[Dict[str, Any]] = None)
src/services/luckmail_mail.py:181
↓ 2 callersFunction_claim_outlook_account
(email: Optional[str], task_uuid: str, service_id: Optional[int] = None)
src/web/routes/registration.py:74
↓ 2 callersFunction_clamp_int
(value: Any, min_value: int, max_value: int, default: int)
src/web/auto_quick_refresh_scheduler.py:41
↓ 2 callersFunction_click_and_type
(selector: str, value: str)
src/core/openai/browser_bind.py:909
↓ 2 callersFunction_collect_plan_candidates
(value: Any)
src/core/openai/payment.py:601
↓ 2 callersMethod_complete_token_exchange_native_backup
原生入口对齐备份版收尾链路: 登录验证码 -> Workspace -> redirect -> OAuth callback -> token 入袋。
src/core/register.py:1553
↓ 2 callersMethod_connect
建立 IMAP 连接并登录,返回 mail 对象
src/services/imap_mail.py:46
↓ 2 callersFunction_convert_value
将数据库字符串值转换为正确的类型
src/config/settings.py:598
↓ 2 callersMethod_create_direct_session
创建直连会话(不走代理)。
src/core/openai/token_refresh.py:78
↓ 2 callersMethod_create_purchase_inbox
( self, project_code: str, email_type: str, preferred_domain: str, )
src/services/luckmail_mail.py:846
↓ 2 callersMethod_create_user_account
创建用户账户
src/core/register.py:2511
↓ 2 callersFunction_decode_jwt_payload
(token: Optional[str])
src/core/openai/payment.py:533
↓ 2 callersFunction_decode_jwt_payload
(token: Optional[str])
src/core/openai/overview.py:87
↓ 2 callersFunction_decode_jwt_payload_unverified
无签名校验解码 JWT payload,仅用于导入兜底字段提取。
src/web/routes/accounts.py:574
↓ 2 callersMethod_decode_mime_header
解码 MIME 头,兼容 RFC 2047 编码主题。
src/services/temp_mail.py:143
↓ 2 callersFunction_default_entry
()
src/core/circuit_breaker.py:64
↓ 2 callersFunction_detach_bind_card_tasks
(snapshot_email: str)
src/database/crud.py:149
↓ 2 callersFunction_detect_challenge_in_context
扫描当前 context 的所有页面,返回是否存在 challenge,以及命中的页面。
src/core/openai/browser_bind.py:393
↓ 2 callersMethod_extract_account_id_from_token
(token: str)
src/core/anyauto/register_flow.py:122
↓ 2 callersFunction_extract_auth_claim
(payload: Optional[Dict[str, Any]])
src/core/openai/payment.py:552
↓ 2 callersFunction_extract_auth_claim
(payload: Optional[Dict[str, Any]])
src/core/openai/overview.py:106
↓ 2 callersFunction_extract_chatgpt_account_id_from_jwt
(token: Optional[str])
src/core/openai/payment.py:564
↓ 2 callersFunction_extract_chatgpt_account_id_from_jwt
(token: Optional[str])
src/core/openai/overview.py:118
↓ 2 callersFunction_extract_chatgpt_plan_from_jwt
(token: Optional[str])
src/core/openai/payment.py:580
↓ 2 callersFunction_extract_checkout_link_from_payload
从响应体中提取可直达 chatgpt checkout 的链接。
src/core/openai/payment.py:343
↓ 2 callersFunction_extract_cookie_value
(cookies_text: Optional[str], cookie_name: str)
src/web/routes/payment.py:262
↓ 2 callersFunction_extract_cpa_error
(response)
src/core/upload/cpa_upload.py:51
↓ 2 callersFunction_extract_link_from_payload
从任意结构中提取 URL 字段。
src/core/openai/payment.py:88
↓ 2 callersMethod_extract_mail_timestamp
从不同字段中提取邮件时间戳。
src/services/temp_mail.py:531
↓ 2 callersFunction_extract_oai_did
从 cookie 字符串中提取 oai-device-id
src/core/openai/payment.py:627
↓ 2 callersMethod_extract_otp_code
提取验证码并返回是否语义命中。 优先语义匹配(code is 123456),降低误匹配邮件正文中随机 6 位数字的概率。
src/services/temp_mail.py:261
↓ 2 callersFunction_extract_plan_string_candidates
提取常见 plan 字段的字符串候选值。
src/core/openai/overview.py:678
↓ 2 callersFunction_extract_publishable_key
(text: str)
src/core/openai/payment.py:156
↓ 2 callersFunction_extract_quota
(window: str, payloads: Dict[str, Dict[str, Any]])
src/core/openai/overview.py:645
↓ 2 callersMethod_extract_request_cookie_header
从响应对象关联的请求头中提取 Cookie。 对齐 F12 Network -> Request Headers -> Cookie 的观测路径。
src/core/register.py:380
↓ 2 callersFunction_extract_session_from_response
(resp, session)
src/web/routes/payment.py:1060
↓ 2 callersMethod_extract_session_token_from_cookie_jar
从 CookieJar 中提取 next-auth session token(兼容分片 + 重复域名)。
src/core/register.py:302
↓ 2 callersFunction_extract_session_token_from_cookie_text
(cookies_str: str)
src/core/openai/browser_bind.py:214
↓ 2 callersFunction_extract_task_token_completeness
(task: RegistrationTask)
src/web/routes/registration.py:516
↓ 2 callersFunction_fill_address_iframe
( page, billing_name: str, billing_line1: str, billing_zip: str, billing_country: str,
src/core/openai/browser_bind.py:881
↓ 2 callersFunction_fill_payment_iframe
(page, card_number: str, exp_month: str, exp_year: str, cvc: str)
src/core/openai/browser_bind.py:831
↓ 2 callersMethod_find_order
(self, email: Optional[str], email_id: Optional[str])
src/services/luckmail_mail.py:159
↓ 2 callersFunction_flow_page_url
(flow: str)
src/core/anyauto/sentinel_browser.py:12
↓ 2 callersFunction_generate_checkout_link_for_account
( account: Account, request: "CheckoutRequestBase", proxy: Optional[str], )
src/web/routes/payment.py:1911
↓ 2 callersMethod_generate_email_address
生成邮箱地址 Args: prefix: 邮箱前缀,如果不提供则随机生成 domain: 指定域名,如果不提供则从配置中选择 subdomain: 子域名,可选参数,会插入到 @ 和域名之间
src/services/cloud_mail.py:229
↓ 2 callersMethod_generate_password
生成随机密码
src/core/register.py:408
↓ 2 callersFunction_get_account_overview_data
( db, account: Account, force_refresh: bool = False, proxy: Optional[str] = None, allow_ne
src/web/routes/accounts.py:603
↓ 2 callersMethod_get_config
构造浏览器环境数据数组
src/core/anyauto/sentinel_token.py:56
↓ 2 callersFunction_get_current_account_id
(db)
src/web/routes/accounts.py:470
↓ 2 callersFunction_get_email_service_delete_impact
获取删除邮箱服务前的关联注册任务影响统计
src/web/routes/email.py:534
↓ 2 callersFunction_get_env_bool
(name: str, default: bool)
src/database/session.py:36
↓ 2 callersMethod_get_headers
构造请求头
src/services/cloud_mail.py:157
↓ 2 callersMethod_get_provider
获取或创建提供者实例 Args: account: Outlook 账户 provider_type: 提供者类型 Returns: 提供者实例
src/services/outlook/service.py:153
↓ 2 callersMethod_get_verification_code
获取验证码
src/core/register.py:2322
← previousnext →401–500 of 2,218, ranked by callers