From f837b14b558275973974c417ad1d45cc2f343acd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Wed, 27 Jan 2021 15:05:53 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E5=85=8D=E5=8D=95=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/util/turn_chain/turn_chain_util.dart | 8 ++++---- lib/zhiying_comm.dart | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/util/turn_chain/turn_chain_util.dart b/lib/util/turn_chain/turn_chain_util.dart index b9260e3..e39919a 100644 --- a/lib/util/turn_chain/turn_chain_util.dart +++ b/lib/util/turn_chain/turn_chain_util.dart @@ -55,7 +55,7 @@ class TurnChainUtil { /// 微盘: sinavdisk:// /// 名片全能王: camcard:// /// - static Future openReceiveCoupon(BuildContext context, UserInfoModel userInfoModel, String goodsId, String provider, Map data, {bool isFree}) async { + static Future openReceiveCoupon(BuildContext context, UserInfoModel userInfoModel, String goodsId, String provider, Map data, {bool isFree=false}) async { ///iOS 审核状态 String is_ios_review = await SharedPreferencesUtil.getStringValue(GlobalConfig.IS_IOS_REVIEW, defaultVal: '0'); @@ -166,7 +166,7 @@ class TurnChainUtil { } /// 3、获取转链的结果 - Map result = await getTurnChainResult(context, goodsId, provider, data, isShare: true); + Map result = await getTurnChainResult(context, goodsId, provider, data, isShare: true ); if (!EmptyUtil.isEmpty(result) && !EmptyUtil.isEmpty(result['open_app_url'])) { return result; } @@ -211,8 +211,8 @@ class TurnChainUtil { data['is_share'] = isShare ? '1' : '0'; ///1为免单,0为普通 - data['isFree'] = isFree ? "1" : "0"; - isFree ? print("免单") : print("普通"); + data['is_free'] = (isFree??false) ? "1" : "0"; + (isFree??false) ? print("免单") : print("普通"); if (EmptyUtil.isEmpty(model)) { // 开启loading diff --git a/lib/zhiying_comm.dart b/lib/zhiying_comm.dart index 4a008b4..271f545 100644 --- a/lib/zhiying_comm.dart +++ b/lib/zhiying_comm.dart @@ -39,4 +39,6 @@ export 'util/parse_util.dart'; export 'util/download/download.dart'; export 'util/alipay_util.dart'; export 'util/bubble_tabIndicator/bubble_tabIndicator.dart'; +export 'util/event_util/event_util.dart'; +export 'util/event_util/login_success_event.dart';