From 2933f4d2f051e25e2a98aaf8b7f4ea4c92a51756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Mon, 22 Mar 2021 10:45:41 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=9B=B4=E6=96=B0=E7=99=BE=E5=B7=9D=E3=80=81?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B7=98=E5=AE=9D=E6=8E=88=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/util/taobao/taobao_auth.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/util/taobao/taobao_auth.dart b/lib/util/taobao/taobao_auth.dart index ea3370e..651e937 100644 --- a/lib/util/taobao/taobao_auth.dart +++ b/lib/util/taobao/taobao_auth.dart @@ -38,11 +38,11 @@ class TaobaoAuth { TradeResult result; if (Platform.isAndroid) { result = await FlutterAlibc.openByUrl(url: url, backUrl: "alisdk://", isAuth: true); - if(result.errorCode=="0"){ - await Navigator.push(context,MaterialPageRoute(builder: (_)=>AuthSuccessPage(authResultType: AuthResultType.success,)) ); - }else{ - await Navigator.push(context,MaterialPageRoute(builder: (_)=>AuthSuccessPage(authResultType: AuthResultType.error,)) ); - } + // if(result.errorCode=="0"){ + // await Navigator.push(context,MaterialPageRoute(builder: (_)=>AuthSuccessPage(authResultType: AuthResultType.success,)) ); + // }else{ + // await Navigator.push(context,MaterialPageRoute(builder: (_)=>AuthSuccessPage(authResultType: AuthResultType.error,)) ); + // } } else if (Platform.isIOS) { result = await FlutterAlibc.openByUrl(url: url); }