From e71b28de9960bb28f707702ee585e0f29b61261d Mon Sep 17 00:00:00 2001
From: "2846432477@qq.com" <2846432477@qq.com>
Date: Mon, 4 Jan 2021 15:29:41 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=B8=80=E4=B8=8B=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/workspace.xml | 12 +++++++-----
lib/util/net_util.dart | 2 +-
lib/util/turn_chain/turn_chain_util.dart | 10 +++++++++-
3 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index b68fae9..adb89bb 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,8 +4,9 @@
-
+
+
@@ -582,17 +583,18 @@
-
-
+
+
-
-
+
+
+
diff --git a/lib/util/net_util.dart b/lib/util/net_util.dart
index 01a24f1..deea733 100644
--- a/lib/util/net_util.dart
+++ b/lib/util/net_util.dart
@@ -55,7 +55,7 @@ class NetUtil {
if (_dio == null) {
var setting = await NativeUtil.getSetting();
String domain = setting['domain']; //'http://www.hairuyi.com/';
- _config(domain, proxyUrl: '192.168.0.125:8888');// 192.168.0.66:8866
+ _config(domain, proxyUrl: '');// 192.168.0.66:8866
}
return _dio;
}
diff --git a/lib/util/turn_chain/turn_chain_util.dart b/lib/util/turn_chain/turn_chain_util.dart
index f50251c..b6884b8 100644
--- a/lib/util/turn_chain/turn_chain_util.dart
+++ b/lib/util/turn_chain/turn_chain_util.dart
@@ -18,6 +18,7 @@ import 'package:zhiying_comm/util/turn_chain/turn_chain_style_model.dart';
import '../router_util.dart';
import 'turn_chain_dialog.dart';
+import 'package:zhiying_comm/util/shared_prefe_util.dart';
class TurnChainUtil {
///
@@ -55,6 +56,8 @@ class TurnChainUtil {
/// 名片全能王: camcard://
///
static Future openReceiveCoupon(BuildContext context, UserInfoModel userInfoModel, String goodsId, String provider, Map data) async {
+ ///iOS 审核状态
+ String is_ios_review = await SharedPreferencesUtil.getStringValue(GlobalConfig.IS_IOS_REVIEW, defaultVal: '0');
/// 1、先判断是否登陆
if (EmptyUtil.isEmpty(userInfoModel) || EmptyUtil.isEmpty(userInfoModel?.token)) {
RouterUtil.goLogin(context);
@@ -83,7 +86,12 @@ class TurnChainUtil {
if (Platform.isAndroid) {
tradeResult = await FlutterAlibc.openByUrl(url: openAppUrl, backUrl: "alisdk://");
} else if (Platform.isIOS) {
- tradeResult = await FlutterAlibc.openByUrl(url: openAppUrl);
+ if(is_ios_review=='1'){
+ print('iOS审核:'+is_ios_review);
+ RouterUtil.openWebview(webUrl, context);
+ }else{
+ tradeResult = await FlutterAlibc.openByUrl(url: openAppUrl);
+ }
}
Logger.debug('taobao result = ${tradeResult.errorCode} ${tradeResult.errorMessage} ');
} else if (!EmptyUtil.isEmpty(webUrl)) {