Browse Source

1.更新百川、优化淘宝授权

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

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

@@ -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);
}


Loading…
Cancel
Save