MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / handleStartRegistration

Function handleStartRegistration

static/js/app.js:1032–1066  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

1030
1031// 开始注册
1032async function handleStartRegistration(e) {
1033 e.preventDefault();
1034
1035 if (isAutoMode) {
1036 await handleSaveAutoRegistration();
1037 return;
1038 }
1039
1040 const selectedValue = elements.emailService.value;
1041 if (!selectedValue) {
1042 toast.error('请选择一个邮箱服务');
1043 return;
1044 }
1045
1046 // 处理 Outlook 批量注册模式
1047 if (isOutlookBatchMode) {
1048 await handleOutlookBatchRegistration();
1049 return;
1050 }
1051
1052 // 禁用开始按钮
1053 elements.startBtn.disabled = true;
1054 elements.cancelBtn.disabled = false;
1055
1056 // 清空日志
1057 elements.consoleLog.innerHTML = '';
1058
1059 const requestData = buildCurrentRegistrationConfig();
1060
1061 if (isBatchMode) {
1062 await handleBatchRegistration(requestData);
1063 } else {
1064 await handleSingleRegistration(requestData);
1065 }
1066}
1067
1068
1069async function loadAutoRegistrationSettings() {

Callers

nothing calls this directly

Calls 6

handleBatchRegistrationFunction · 0.85
handleSingleRegistrationFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected