fix latest
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
@@ -207,6 +207,7 @@ interface HomeScreenState {
|
||||
|
||||
export default class HomeScreen extends Component<any, HomeScreenState> {
|
||||
private deviceId: string;
|
||||
private androidId: string;
|
||||
|
||||
private tuneUserId: string;
|
||||
|
||||
@@ -242,7 +243,8 @@ export default class HomeScreen extends Component<any, HomeScreenState> {
|
||||
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<any, HomeScreenState> {
|
||||
onRequestClose={close('showMobikwikPersonalBind')}
|
||||
>
|
||||
<MobikwikOTPBind
|
||||
isDebug
|
||||
isDebug={true}
|
||||
deviceId={this.deviceId}
|
||||
tuneUserId={this.tuneUserId}
|
||||
androidId={this.androidId}
|
||||
initialMobile={bindPrefillMobile}
|
||||
onRequestOTP={async (wt, p) =>
|
||||
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')}
|
||||
|
||||
Reference in New Issue
Block a user