fix: 修复 MaDao direct 常量隔离测试
This commit is contained in:
@@ -4654,7 +4654,10 @@ function collectSettingsPayload() {
|
|||||||
const maDaoRoutingPlanIdValue = typeof selectMaDaoRoutingPlanId !== 'undefined' && selectMaDaoRoutingPlanId
|
const maDaoRoutingPlanIdValue = typeof selectMaDaoRoutingPlanId !== 'undefined' && selectMaDaoRoutingPlanId
|
||||||
? normalizeMaDaoIdentifierSafe(selectMaDaoRoutingPlanId.value || '')
|
? normalizeMaDaoIdentifierSafe(selectMaDaoRoutingPlanId.value || '')
|
||||||
: normalizeMaDaoIdentifierSafe(latestState?.madaoRoutingPlanId || '');
|
: normalizeMaDaoIdentifierSafe(latestState?.madaoRoutingPlanId || '');
|
||||||
const shouldReadMaDaoDirectControls = maDaoModeValue === MADAO_MODE_DIRECT;
|
const maDaoDirectModeValue = typeof MADAO_MODE_DIRECT !== 'undefined'
|
||||||
|
? MADAO_MODE_DIRECT
|
||||||
|
: 'direct';
|
||||||
|
const shouldReadMaDaoDirectControls = maDaoModeValue === maDaoDirectModeValue;
|
||||||
const maDaoProviderIdValue = shouldReadMaDaoDirectControls && typeof selectMaDaoProviderId !== 'undefined' && selectMaDaoProviderId
|
const maDaoProviderIdValue = shouldReadMaDaoDirectControls && typeof selectMaDaoProviderId !== 'undefined' && selectMaDaoProviderId
|
||||||
? normalizeMaDaoProviderIdSafe(selectMaDaoProviderId.value || '')
|
? normalizeMaDaoProviderIdSafe(selectMaDaoProviderId.value || '')
|
||||||
: normalizeMaDaoProviderIdSafe(latestState?.madaoProviderId || '');
|
: normalizeMaDaoProviderIdSafe(latestState?.madaoProviderId || '');
|
||||||
@@ -17628,7 +17631,10 @@ function buildPhoneSmsProviderStatePatch(provider = getSelectedPhoneSmsProvider(
|
|||||||
}
|
}
|
||||||
if (normalizedProvider === PHONE_SMS_PROVIDER_MADAO) {
|
if (normalizedProvider === PHONE_SMS_PROVIDER_MADAO) {
|
||||||
const maDaoMode = normalizeMaDaoModeValue(selectMaDaoMode?.value || latestState?.madaoMode);
|
const maDaoMode = normalizeMaDaoModeValue(selectMaDaoMode?.value || latestState?.madaoMode);
|
||||||
const shouldReadMaDaoDirectControls = maDaoMode === MADAO_MODE_DIRECT;
|
const maDaoDirectModeValue = typeof MADAO_MODE_DIRECT !== 'undefined'
|
||||||
|
? MADAO_MODE_DIRECT
|
||||||
|
: 'direct';
|
||||||
|
const shouldReadMaDaoDirectControls = maDaoMode === maDaoDirectModeValue;
|
||||||
return {
|
return {
|
||||||
madaoBaseUrl: normalizeMaDaoBaseUrlValue(inputMaDaoBaseUrl?.value || latestState?.madaoBaseUrl),
|
madaoBaseUrl: normalizeMaDaoBaseUrlValue(inputMaDaoBaseUrl?.value || latestState?.madaoBaseUrl),
|
||||||
madaoHttpSecret: String(inputMaDaoHttpSecret?.value || ''),
|
madaoHttpSecret: String(inputMaDaoHttpSecret?.value || ''),
|
||||||
|
|||||||
Reference in New Issue
Block a user