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");