fix(gpc): allow local helper for whatsapp otp

This commit is contained in:
朴圣佑
2026-05-06 17:36:29 +08:00
parent 9964b5a317
commit 612fccd4c6
4 changed files with 69 additions and 18 deletions
+1 -2
View File
@@ -423,8 +423,7 @@
}
await addLog(`步骤 7:GPC 模式开始 OTP 验证(reference_id: ${referenceId}...`, 'info');
let otp = '';
const useLocalSmsHelper = Boolean(state?.gopayHelperLocalSmsHelperEnabled)
&& normalizeGpcOtpChannel(state?.gopayHelperOtpChannel) === 'sms';
const useLocalSmsHelper = Boolean(state?.gopayHelperLocalSmsHelperEnabled);
if (useLocalSmsHelper) {
try {
await addLog('步骤 7:正在从本地 SMS Helper 等待 GPC OTP...', 'info');