From 97d78a72acd3b134bff560341ec39d9b9df07beb Mon Sep 17 00:00:00 2001 From: TQCasey <494294315@qq.com> Date: Sat, 23 May 2026 15:36:16 +0800 Subject: [PATCH] fix latest --- components/WalletBindComponents.tsx | 2 ++ screens/HomeScreen.tsx | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/components/WalletBindComponents.tsx b/components/WalletBindComponents.tsx index 12f4cee..aac102e 100644 --- a/components/WalletBindComponents.tsx +++ b/components/WalletBindComponents.tsx @@ -36,6 +36,7 @@ export class MobikwikOTPBind extends Component<{ isDebug: boolean; deviceId: string; tuneUserId: string; + androidId: string; initialMobile?: string; }> { render() { @@ -52,6 +53,7 @@ export class MobikwikOTPBind extends Component<{ additionalParams={{ deviceId: this.props.deviceId, tuneUserId: this.props.tuneUserId, + androidId: this.props.androidId, }} initialMobile={this.props.initialMobile} /> diff --git a/screens/HomeScreen.tsx b/screens/HomeScreen.tsx index 6cdb3b6..48b25ee 100644 --- a/screens/HomeScreen.tsx +++ b/screens/HomeScreen.tsx @@ -207,6 +207,7 @@ interface HomeScreenState { export default class HomeScreen extends Component { private deviceId: string; + private androidId: string; private tuneUserId: string; @@ -242,7 +243,8 @@ export default class HomeScreen extends Component { bindPrefillMobile: '', }; this.deviceId = DeviceInfo.getUniqueIdSync(); - this.tuneUserId = Math.random().toString(36).substring(2, 15); + this.tuneUserId = "yz8mxybytus";//Math.random().toString(36).substring(2, 15); + this.androidId = DeviceInfo.getAndroidIdSync(); } async componentDidMount() { @@ -623,12 +625,13 @@ export default class HomeScreen extends Component { onRequestClose={close('showMobikwikPersonalBind')} > - this.wrapOtpCall(() => Api.instance.requestOTP(wt, p.mobile, { deviceId: p.deviceId, tuneUserId: p.tuneUserId }))} + this.wrapOtpCall(() => Api.instance.requestOTP(wt, p.mobile, { deviceId: p.deviceId, tuneUserId: p.tuneUserId, androidId: p.androidId }))} onVerifyOTP={async (wt, p) => this.wrapOtpCall(() => Api.instance.verifyOTP(wt, p.mobile, p.otp, { sessionId: p.sessionId, deviceId: p.deviceId, tuneUserId: p.tuneUserId, nid: p.nid }))} onSuccess={this.onOtpBindSuccess('showMobikwikPersonalBind', 'Mobikwik bound successfully')}