From f5a7c1b055707d2ac61d9de85c9dedbd39e71348 Mon Sep 17 00:00:00 2001 From: fmk Date: Mon, 10 Oct 2022 16:53:38 +0800 Subject: [PATCH] =?UTF-8?q?ios=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=AE=9D=E5=85=85=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Podfile.lock | 6 ++++++ ios/Runner/Info.plist | 11 +++++++++++ lib/mine/recharge_page.dart | 3 ++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 720a66e4..dece6996 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -218,6 +218,8 @@ PODS: - SSZipArchive (2.4.2) - thumbnails (0.0.1): - Flutter + - tobias (0.0.1): + - Flutter - TPNS-iOS (1.3.4.1) - tpns_flutter_plugin (1.1.6): - Flutter @@ -250,6 +252,7 @@ DEPENDENCIES: - sharesdk_plugin (from `.symlinks/plugins/sharesdk_plugin/ios`) - SSZipArchive (~> 2.4.2) - thumbnails (from `.symlinks/plugins/thumbnails/ios`) + - tobias (from `.symlinks/plugins/tobias/ios`) - tpns_flutter_plugin (from `.symlinks/plugins/tpns_flutter_plugin/ios`) - url_launcher (from `.symlinks/plugins/url_launcher/ios`) - video_player (from `.symlinks/plugins/video_player/ios`) @@ -300,6 +303,8 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/sharesdk_plugin/ios" thumbnails: :path: ".symlinks/plugins/thumbnails/ios" + tobias: + :path: ".symlinks/plugins/tobias/ios" tpns_flutter_plugin: :path: ".symlinks/plugins/tpns_flutter_plugin/ios" url_launcher: @@ -335,6 +340,7 @@ SPEC CHECKSUMS: sharesdk_plugin: dbe766efb15fdb2605133084da7a9144a1410d71 SSZipArchive: e7b4f3d9e780c2acc1764cd88fbf2de28f26e5b2 thumbnails: bb4f4e9bb4b51c8ae4e6ad9a2fa81373f9b634ad + tobias: 2aded9b83e3663b907360a800d8e3c13284f25c5 TPNS-iOS: 36c335eff80670de6ede780ab827f679d78f64ff tpns_flutter_plugin: ed7fae92efde473d5cb9fd33ac92caa2d64530a2 url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index f3eea2d8..3deca04c 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -64,6 +64,16 @@ fb523308712059457 + + CFBundleTypeRole + Editor + CFBundleURLName + alipay + CFBundleURLSchemes + + alipay2021003156646403 + + CFBundleVersion $(CURRENT_PROJECT_VERSION) @@ -84,6 +94,7 @@ line lineauth line3rdp.$(PRODUCT_BUNDLE_IDENTIFIER) + alipay LSRequiresIPhoneOS diff --git a/lib/mine/recharge_page.dart b/lib/mine/recharge_page.dart index 848d0bb6..d16e6615 100644 --- a/lib/mine/recharge_page.dart +++ b/lib/mine/recharge_page.dart @@ -703,9 +703,10 @@ class _RechargePage extends State { if (!value) { SmartDialog.showToast("请安装支付宝", alignment: Alignment.center) }else{ - tobias.aliPay(baseData.data["body"],evn: AliPayEvn.SANDBOX).then((payRes) { + tobias.aliPay(baseData.data["body"]).then((payRes) { if (payRes['resultStatus'] == 9000 || payRes['resultStatus'] == '9000') { + SmartDialog.showToast("充值成功", alignment: Alignment.center); Navigator.of(context).pop(); } else { SmartDialog.showToast(payRes['memo'], alignment: Alignment.center);