|
@@ -38,11 +38,11 @@ class TaobaoAuth { |
|
|
TradeResult result; |
|
|
TradeResult result; |
|
|
if (Platform.isAndroid) { |
|
|
if (Platform.isAndroid) { |
|
|
result = await FlutterAlibc.openByUrl(url: url, backUrl: "alisdk://", isAuth: true); |
|
|
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) { |
|
|
} else if (Platform.isIOS) { |
|
|
result = await FlutterAlibc.openByUrl(url: url); |
|
|
result = await FlutterAlibc.openByUrl(url: url); |
|
|
} |
|
|
} |
|
|