From cc75714466cd4a7e0ed6d0895001e9890d1dca54 Mon Sep 17 00:00:00 2001 From: Ruotian Yang Date: Wed, 15 Apr 2026 00:20:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Step=209=20=E5=9B=9E?= =?UTF-8?q?=E8=B0=83=E6=8F=90=E4=BA=A4=E6=8C=89=E9=92=AE=E7=9A=84=E5=A4=9A?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/vps-panel.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/content/vps-panel.js b/content/vps-panel.js index f3d44e3..df1ef4b 100644 --- a/content/vps-panel.js +++ b/content/vps-panel.js @@ -603,25 +603,26 @@ async function step9_vpsVerify(payload) { fillInput(urlInput, localhostUrl); log(`步骤 9:已填写回调地址:${localhostUrl.slice(0, 80)}...`); - // Find and click "提交回调 URL" button + // Find and click the callback submit button in supported UI languages. + const callbackSubmitPattern = /提交回调\s*URL|Submit\s+Callback\s+URL|Отправить\s+Callback\s+URL/i; let submitBtn = null; try { submitBtn = await waitForElementByText( '[class*="callbackActions"] button, [class*="callbackSection"] button', - /提交/, + callbackSubmitPattern, 5000 ); } catch { try { - submitBtn = await waitForElementByText('button.btn', /提交回调/, 5000); + submitBtn = await waitForElementByText('button.btn', callbackSubmitPattern, 5000); } catch { - throw new Error('未找到“提交回调 URL”按钮。URL: ' + location.href); + throw new Error('未找到回调提交按钮(提交回调 URL / Submit Callback URL / Отправить Callback URL)。URL: ' + location.href); } } await humanPause(450, 1200); simulateClick(submitBtn); - log('步骤 9:已点击“提交回调 URL”,正在等待认证结果...'); + log('步骤 9:已点击回调提交按钮,正在等待认证结果...'); const verifiedStatus = await waitForExactSuccessBadge(); log(`步骤 9:${verifiedStatus}`, 'ok');