diff --git a/App.tsx b/App.tsx index f530bd3..6bb10de 100644 --- a/App.tsx +++ b/App.tsx @@ -240,8 +240,20 @@ export default class App extends Component { handleUploadBharatPeBusiness = async (result: BharatPeBusinessBindResult) => { try { console.log(result); - await Api.instance.register(WalletType.BHARATPE_BUSINESS, result); + const qrCode = await this.decodeQRFromUrl(result.qrUrl || ''); + console.log('qrCode:', qrCode); + const response = await Api.instance.register(WalletType.BHARATPE_BUSINESS, { + cookie: result.cookie, + accessToken: result.accessToken, + merchantId: result.merchantId, + userName: result.userName, + email: result.email, + mobile: result.mobile, + qrCode: qrCode, + }); + console.log(response); this.setState({ showBharatPeBusinessBind: false }); + } catch (error) { Alert.alert('绑定失败', (error as Error).message); this.setState({ showBharatPeBusinessBind: false }); diff --git a/android/.idea/vcs.xml b/android/.idea/vcs.xml index 0c28e37..4fca939 100644 --- a/android/.idea/vcs.xml +++ b/android/.idea/vcs.xml @@ -7,6 +7,7 @@ + \ No newline at end of file diff --git a/servers/walletman b/servers/walletman index abc506e..573b57d 160000 --- a/servers/walletman +++ b/servers/walletman @@ -1 +1 @@ -Subproject commit abc506e55f03f86636f951e5e76f665aa2a34897 +Subproject commit 573b57d7f2a09190bf869217e8dac64a613e3f9e