Переглянути джерело

feat: 更新注册流程,替换确保注册入口页面就绪的逻辑为打开注册标签页,并调整文档描述以反映新逻辑

祁连海 4 місяців тому
батько
коміт
adf0cccd77
3 змінених файлів з 7 додано та 6 видалено
  1. 1 1
      background.js
  2. 2 2
      background/steps/open-chatgpt.js
  3. 4 3
      项目完整链路说明.md

+ 1 - 1
background.js

@@ -5641,7 +5641,7 @@ const verificationFlowHelpers = self.MultiPageBackgroundVerificationFlow?.create
 const step1Executor = self.MultiPageBackgroundStep1?.createStep1Executor({
 const step1Executor = self.MultiPageBackgroundStep1?.createStep1Executor({
   addLog,
   addLog,
   completeStepFromBackground,
   completeStepFromBackground,
-  ensureSignupEntryPageReady,
+  openSignupEntryTab,
 });
 });
 const step2Executor = self.MultiPageBackgroundStep2?.createStep2Executor({
 const step2Executor = self.MultiPageBackgroundStep2?.createStep2Executor({
   addLog,
   addLog,

+ 2 - 2
background/steps/open-chatgpt.js

@@ -5,12 +5,12 @@
     const {
     const {
       addLog,
       addLog,
       completeStepFromBackground,
       completeStepFromBackground,
-      ensureSignupEntryPageReady,
+      openSignupEntryTab,
     } = deps;
     } = deps;
 
 
     async function executeStep1() {
     async function executeStep1() {
       await addLog('步骤 1:正在打开 ChatGPT 官网...');
       await addLog('步骤 1:正在打开 ChatGPT 官网...');
-      await ensureSignupEntryPageReady(1);
+      await openSignupEntryTab(1);
       await completeStepFromBackground(1, {});
       await completeStepFromBackground(1, {});
     }
     }
 
 

+ 4 - 3
项目完整链路说明.md

@@ -191,9 +191,10 @@
 
 
 流程:
 流程:
 
 
-1. 后台打开 ChatGPT 官网
-2. 等待注册入口页内容脚本就绪
-3. 标记 Step 1 完成
+1. 后台打开 ChatGPT 官网并复用/创建注册页标签
+2. 等待注册页内容脚本就绪(仅做连接与注入确认)
+3. 不在 Step 1 检测或点击注册入口
+4. 标记 Step 1 完成
 
 
 补充:
 补充: