From 8a82772dc67606309a523e77bf7a1e5da5b7da5e Mon Sep 17 00:00:00 2001 From: TQCasey <494294315@qq.com> Date: Sat, 2 May 2026 11:54:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=20paytm=20biz=20=E7=9A=84?= =?UTF-8?q?=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/WalletBindComponents.tsx | 5 +---- screens/HomeScreen.tsx | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/components/WalletBindComponents.tsx b/components/WalletBindComponents.tsx index d74faf5..a1a9935 100644 --- a/components/WalletBindComponents.tsx +++ b/components/WalletBindComponents.tsx @@ -130,7 +130,6 @@ function PaytmBusinessForm({ onRequestOTP, onVerifyOTP, onSuccess, onError, isDe }) { const [step, setStep] = useState<'credentials' | 'otp' | 'processing'>('credentials'); const [mobile, setMobile] = useState(''); - const [password, setPassword] = useState(''); const [otp, setOtp] = useState(''); const [sessionId, setSessionId] = useState(''); const [loading, setLoading] = useState(false); @@ -140,10 +139,9 @@ function PaytmBusinessForm({ onRequestOTP, onVerifyOTP, onSuccess, onError, isDe const handleRequestOTP = async () => { if (!mobile || mobile.length !== 10) { setErrorMsg('请输入10位手机号'); return; } - if (!password) { setErrorMsg('请输入密码'); return; } setLoading(true); setErrorMsg(''); try { - const res = await onRequestOTP(WalletType.PAYTM_BUSINESS, { mobile, password }); + const res = await onRequestOTP(WalletType.PAYTM_BUSINESS, { mobile }); log('RequestOTP:', res); if (res.success) { setSessionId(res.data?.sessionId || ''); setStep('otp'); } else { const msg = res.message || 'Failed to send OTP'; setErrorMsg(msg); onError(msg); } @@ -188,7 +186,6 @@ function PaytmBusinessForm({ onRequestOTP, onVerifyOTP, onSuccess, onError, isDe {step === 'credentials' && ( <> { setMobile(t); setErrorMsg(''); }} editable={!loading} /> - { setPassword(t); setErrorMsg(''); }} editable={!loading} /> {loading ? : 获取验证码} diff --git a/screens/HomeScreen.tsx b/screens/HomeScreen.tsx index fc6d307..2cc5de2 100644 --- a/screens/HomeScreen.tsx +++ b/screens/HomeScreen.tsx @@ -549,7 +549,7 @@ export default class HomeScreen extends Component { return await Api.instance.requestOTP( wt, p.mobile, - { password: p.password }, + {}, ); } catch (e) { return {