瀏覽代碼

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

tags/0.0.8+3
“yanghuaxuan” 3 年之前
父節點
當前提交
2933f4d2f0
共有 1 個檔案被更改,包括 5 行新增5 行删除
  1. +5
    -5
      lib/util/taobao/taobao_auth.dart

+ 5
- 5
lib/util/taobao/taobao_auth.dart 查看文件

@@ -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…
取消
儲存