From f319697f68c5eff682afe13fc7d880620519e1fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Thu, 15 Apr 2021 18:16:18 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=8E=88=E6=9D=83=E6=97=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?taobo=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/util/taobao/taobao_auth.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util/taobao/taobao_auth.dart b/lib/util/taobao/taobao_auth.dart index 53c8991..ae1202d 100644 --- a/lib/util/taobao/taobao_auth.dart +++ b/lib/util/taobao/taobao_auth.dart @@ -50,13 +50,14 @@ class TaobaoAuth { // result = await FlutterAlibc.openByUrl(url: url, backUrl: "alisdk://", isAuth: true); print("name: $name" + "\n" + "alibcAppKey: $alibcAppKey"); var resultMsg = await FlutterAlibc.taoKeLoginNew(name, alibcAppKey); - + FlutterAlibc.loginOut(); if (!EmptyUtil.isEmpty(resultMsg["accessToken"])) { print("access 成功 $resultMsg"); Map params = {}; params['access_token'] = resultMsg["accessToken"]?.toString(); await NetUtil.post('/api/v1/tbredirect', params: params, method: NetMethod.POST); + } else { print("access 失败 $resultMsg"); Fluttertoast.showToast(msg: "access 失败 $resultMsg");