增加 qr 解析
This commit is contained in:
14
App.tsx
14
App.tsx
@@ -240,8 +240,20 @@ export default class App extends Component<AppProps, WalletmanAppState> {
|
||||
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 });
|
||||
|
||||
1
android/.idea/vcs.xml
generated
1
android/.idea/vcs.xml
generated
@@ -7,6 +7,7 @@
|
||||
<mapping directory="$PROJECT_DIR$/../libs/rnwalletman" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/../node_modules/rnauto" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/../node_modules/rnwalletman" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/../servers/usdtman" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/../servers/walletman" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
Submodule servers/walletman updated: abc506e55f...573b57d7f2
Reference in New Issue
Block a user