diff --git a/lib/models/base/base_setting_model.dart b/lib/models/base/base_setting_model.dart index edb1a93..cda38b9 100644 --- a/lib/models/base/base_setting_model.dart +++ b/lib/models/base/base_setting_model.dart @@ -65,7 +65,8 @@ class BaseSettingModel { createBaseSet(data); return _setting; } - } catch (err) { + } catch (err,s) { + print(s); Logger.error(err); } return null; diff --git a/lib/util/alipay_util.dart b/lib/util/alipay_util.dart index 83ada67..13cb031 100644 --- a/lib/util/alipay_util.dart +++ b/lib/util/alipay_util.dart @@ -1,25 +1,23 @@ import 'package:tobias/tobias.dart' as tobias; -///支付宝支付 -class AliPayUtil{ +///支付宝支付 +class AliPayUtil { ///orderCode 为后端返回支付Code字符串 ///返回true表示支付成功,false表示支付失败 - static Future toPay(String orderCode)async{ - - Map result= await tobias.aliPay(orderCode); - print(result); - if(result!=null&&result['resultStatus']!=null&&result['resultStatus'].toString()=="9000"){ - print("支付宝支付结果"); - print(result); - return true; - }else{ - return false; - } + static Future toPay(String orderCode) async { + Map result = await tobias.aliPay(orderCode); + print(result); + if (result != null && result['resultStatus'] != null && result['resultStatus'].toString() == "9000") { + print("支付宝支付结果"); + print(result); + return true; + } else { + return false; + } } ///检查是否安装了支付宝 static Future isInstallAliPay() async { return await tobias.isAliPayInstalled(); } - -} \ No newline at end of file +} diff --git a/pubspec.yaml b/pubspec.yaml index c4484e2..3200c81 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -94,7 +94,11 @@ dependencies: git: url: 'http://192.168.0.138:3000/FnuoOS_ZhiYing/tobias.git' ref: '0.0.2' - fluwx: '2.6.2' + #微信支付 + fluwx: + git: + url: 'http://192.168.0.138:3000/FnuoOS_ZhiYing/fluwx.git' + ref: '0.0.1' event_bus: 1.1.1