panhui 6 years ago
parent
commit
ca62a2db04
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/pages/ShoppingMall.dart

+ 2 - 2
lib/pages/ShoppingMall.dart

@@ -207,8 +207,8 @@ class RechargeState extends State<Recharge> {
 
 
             Result res = await HttpManager.get('systemVariable/get', data: {'name': "iosPayHide"});
             Result res = await HttpManager.get('systemVariable/get', data: {'name': "iosPayHide"});
 
 
-            if (res.success && res.data != null && res.data == true && Platform.isIOS) {
-              MyDialog.showDialog(context, 'ios充值暂未开');
+            if (res.success && res.data != null && res.data == 'true' && Platform.isIOS) {
+              MyDialog.showDialog(context, 'ios充值暂未开');
             } else {
             } else {
               Navigator.push(context, CupertinoPageRoute(builder: (context) => ChoosePay(widget.type, chooseProduct)));
               Navigator.push(context, CupertinoPageRoute(builder: (context) => ChoosePay(widget.type, chooseProduct)));
             }
             }