Browse Source

1、更新淘宝授权的逻辑

tags/0.0.15+5
“yanghuaxuan” 3 years ago
parent
commit
e3270335d5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/util/taobao/taobao_auth.dart

+ 1
- 1
lib/util/taobao/taobao_auth.dart View File

@@ -66,11 +66,11 @@ class TaobaoAuth {
Map<String, dynamic> params = {}; Map<String, dynamic> params = {};
params['access_token'] = resultMsg["accessToken"]?.toString(); params['access_token'] = resultMsg["accessToken"]?.toString();
await NetUtil.post('/api/v1/tbredirect', params: params, method: NetMethod.POST); await NetUtil.post('/api/v1/tbredirect', params: params, method: NetMethod.POST);
FlutterAlibc.loginOut();
} else { } else {
print("access 失败 $resultMsg"); print("access 失败 $resultMsg");
Fluttertoast.showToast(msg: "access 失败 $resultMsg"); Fluttertoast.showToast(msg: "access 失败 $resultMsg");
} }
FlutterAlibc.loginOut();
} }
return false; return false;
} }


Loading…
Cancel
Save