diff --git a/example/lib/main.dart b/example/lib/main.dart index 6592e04..118b5c1 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_alibc/flutter_alibc.dart'; import 'package:jdsdk/jdsdk.dart'; import 'package:url_launcher/url_launcher.dart'; -import 'package:zhiying_comm/pages/launch_page/launch_page.dart'; import 'package:zhiying_comm/register.dart'; import 'package:zhiying_comm/zhiying_comm.dart'; @@ -35,7 +34,9 @@ class _MyAppState extends State { @override Widget build(BuildContext context) { - return MaterialApp(home: LaunchPage(builder: (context) => HomePage(),),); + return MaterialApp( + home: HomePage(), + ); } } diff --git a/lib/util/taobao/taobao_auth.dart b/lib/util/taobao/taobao_auth.dart index f3b8047..a06ad54 100644 --- a/lib/util/taobao/taobao_auth.dart +++ b/lib/util/taobao/taobao_auth.dart @@ -13,6 +13,9 @@ class TaobaoAuth { return TaobaoAuthAlert(); }); if (isConfirm != null && isConfirm == true) { + Map data = + await NetUtil.post('/api/v1/taobao/auth', method: NetMethod.GET); + TradeResult result = await FlutterAlibc.openByUrl( url: 'https://uland.taobao.com/coupon/edetail?e=3HzI2W1Beb8GQASttHIRqXnNjWpDy9mhXwL7S63FIwYKZE0HebgG45okpD6aY36atPRANf7tQQAMfuX5VbbjJDEhJpUUrcnYl02IO45oPAVVa4HVocdYY3Y9x3IctcCWLspxGy3zBjY8IeN8lvhRA2lzrR4%2BfrcbCbBkjRdlgvJ932VMXbyLuXFtBQJOD%2BAi1xjdOwSZLqE%3D&traceId=0bb623e116004208111058861eea6c&relationId=528397833&union_lens=lensId:TAPI@1600420811@0b8fdc87_0dbb_174a0839173_b4fc@01&relationId=528397833');