From f6a9f42089934d8ace6d87b5295a9bf988cee9dc Mon Sep 17 00:00:00 2001
From: Isulew <224964+netcookies@users.noreply.github.com>
Date: Fri, 29 May 2026 15:39:04 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=B6=E6=95=9B=20MaDao=20=E7=9B=B4?=
=?UTF-8?q?=E8=BF=9E=E6=A8=A1=E5=BC=8F=E8=AE=BE=E7=BD=AE=E9=A1=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
隐藏 MaDao 直连平台、直连国家、自动选国家和复用开关等 adapter 内部参数。
保留直连模式选择与价格范围配置,避免 UI 暴露底层调度细节。
---
sidepanel/sidepanel.html | 36 +------------------
sidepanel/sidepanel.js | 4 ---
...epanel-phone-verification-settings.test.js | 32 ++++++++---------
3 files changed, 17 insertions(+), 55 deletions(-)
diff --git a/sidepanel/sidepanel.html b/sidepanel/sidepanel.html
index 13855ad..65966d4 100644
--- a/sidepanel/sidepanel.html
+++ b/sidepanel/sidepanel.html
@@ -1553,7 +1553,7 @@
接入模式
MaDao 价格
diff --git a/sidepanel/sidepanel.js b/sidepanel/sidepanel.js
index 1e7c91f..fac5b5d 100644
--- a/sidepanel/sidepanel.js
+++ b/sidepanel/sidepanel.js
@@ -732,10 +732,6 @@ const PHONE_SMS_PROVIDER_UI_DESCRIPTORS = Object.freeze({
'rowMaDaoRoutingPlanId',
]),
directRowKeys: Object.freeze([
- 'rowMaDaoProviderId',
- 'rowMaDaoCountry',
- 'rowMaDaoAutoPickCountry',
- 'rowMaDaoReusePhone',
'rowMaDaoPriceRange',
]),
}),
diff --git a/tests/sidepanel-phone-verification-settings.test.js b/tests/sidepanel-phone-verification-settings.test.js
index 814e0d4..e34a0c9 100644
--- a/tests/sidepanel-phone-verification-settings.test.js
+++ b/tests/sidepanel-phone-verification-settings.test.js
@@ -157,14 +157,18 @@ test('sidepanel html exposes phone verification toggle and multi-provider SMS ro
assert.match(html, /id="select-madao-mode"/);
assert.match(html, /id="row-madao-routing-plan-id"/);
assert.match(html, /id="input-madao-routing-plan-id"/);
- assert.match(html, /id="row-madao-provider-id"/);
- assert.match(html, /id="input-madao-provider-id"/);
- assert.match(html, /id="row-madao-country"/);
- assert.match(html, /id="input-madao-country"/);
- assert.match(html, /id="row-madao-auto-pick-country"/);
- assert.match(html, /id="input-madao-auto-pick-country"/);
- assert.match(html, /id="row-madao-reuse-phone"/);
- assert.match(html, /id="input-madao-reuse-phone"/);
+ assert.doesNotMatch(html, /id="row-madao-provider-id"/);
+ assert.doesNotMatch(html, /id="input-madao-provider-id"/);
+ assert.doesNotMatch(html, /id="row-madao-country"/);
+ assert.doesNotMatch(html, /id="input-madao-country"/);
+ assert.doesNotMatch(html, /id="row-madao-auto-pick-country"/);
+ assert.doesNotMatch(html, /id="input-madao-auto-pick-country"/);
+ assert.doesNotMatch(html, /id="row-madao-reuse-phone"/);
+ assert.doesNotMatch(html, /id="input-madao-reuse-phone"/);
+ assert.doesNotMatch(html, /直连平台/);
+ assert.doesNotMatch(html, /直连国家/);
+ assert.doesNotMatch(html, /自动选国家/);
+ assert.doesNotMatch(html, /MaDao 复用/);
assert.match(html, /id="row-madao-price-range"/);
assert.match(html, /id="input-madao-min-price"/);
assert.match(html, /id="input-madao-max-price"/);
@@ -783,10 +787,6 @@ const PHONE_SMS_PROVIDER_UI_DESCRIPTORS = ${JSON.stringify({
'rowMaDaoRoutingPlanId',
],
directRowKeys: [
- 'rowMaDaoProviderId',
- 'rowMaDaoCountry',
- 'rowMaDaoAutoPickCountry',
- 'rowMaDaoReusePhone',
'rowMaDaoPriceRange',
],
},
@@ -1067,10 +1067,10 @@ return {
assert.equal(api.rowMaDaoHttpSecret.style.display, '');
assert.equal(api.rowMaDaoMode.style.display, '');
assert.equal(api.rowMaDaoRoutingPlanId.style.display, 'none');
- assert.equal(api.rowMaDaoProviderId.style.display, '');
- assert.equal(api.rowMaDaoCountry.style.display, '');
- assert.equal(api.rowMaDaoAutoPickCountry.style.display, '');
- assert.equal(api.rowMaDaoReusePhone.style.display, '');
+ assert.equal(api.rowMaDaoProviderId.style.display, 'none');
+ assert.equal(api.rowMaDaoCountry.style.display, 'none');
+ assert.equal(api.rowMaDaoAutoPickCountry.style.display, 'none');
+ assert.equal(api.rowMaDaoReusePhone.style.display, 'none');
assert.equal(api.rowMaDaoPriceRange.style.display, '');
});