diff --git a/lib/util/taobao/taobao_auth.dart b/lib/util/taobao/taobao_auth.dart index 037b319..64fec85 100644 --- a/lib/util/taobao/taobao_auth.dart +++ b/lib/util/taobao/taobao_auth.dart @@ -61,11 +61,14 @@ class TaobaoAuth { } if (!EmptyUtil.isEmpty(resultMsg["accessToken"])) { - Fluttertoast.showToast(msg: '授权成功~'); + // Fluttertoast.showToast(msg: '授权成功~'); print("access 成功 $resultMsg"); Map params = {}; params['access_token'] = resultMsg["accessToken"]?.toString(); - await NetUtil.post('/api/v1/tbredirect', params: params, method: NetMethod.POST); + var result = await NetUtil.post('/api/v1/tbredirect', params: params, method: NetMethod.POST); + if (NetUtil.isSuccess(result)) { + Fluttertoast.showToast(msg: '授权成功~'); + } } else { print("access 失败 $resultMsg"); Fluttertoast.showToast(msg: "access 失败 $resultMsg");