Ver código fonte

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

tags/0.0.8+3
“yanghuaxuan” 3 anos atrás
pai
commit
2933f4d2f0
1 arquivos alterados com 5 adições e 5 exclusões
  1. +5
    -5
      lib/util/taobao/taobao_auth.dart

+ 5
- 5
lib/util/taobao/taobao_auth.dart Ver arquivo

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


Carregando…
Cancelar
Salvar