Browse Source

ios,增加支付宝充值

dart3_last
fmk 2 years ago
parent
commit
f5a7c1b055
  1. 6
      ios/Podfile.lock
  2. 11
      ios/Runner/Info.plist
  3. 3
      lib/mine/recharge_page.dart

6
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

11
ios/Runner/Info.plist

@ -64,6 +64,16 @@
<string>fb523308712059457</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>alipay</string>
<key>CFBundleURLSchemes</key>
<array>
<string>alipay2021003156646403</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
@ -84,6 +94,7 @@
<string>line</string>
<string>lineauth</string>
<string>line3rdp.$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<string>alipay</string>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>

3
lib/mine/recharge_page.dart

@ -703,9 +703,10 @@ class _RechargePage extends State<RechargePage> {
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);

Loading…
Cancel
Save