diff --git a/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_create.dart b/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_create.dart index 56d96aa..18c989a 100644 --- a/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_create.dart +++ b/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_create.dart @@ -23,7 +23,7 @@ class IntellectCreate { if (state == AppLifecycleState.resumed && !isRequest) { isRequest = true; try { - _requestSetData(context); + await _requestSetData(context); } catch (e, s) { isRequest = false; print(e); @@ -76,7 +76,7 @@ class IntellectCreate { static checkAndCreateFirst(BuildContext context) async { ///检查规则 - IntellectCreate.checkAndCreate(AppLifecycleState.resumed, context); + await IntellectCreate.checkAndCreate(AppLifecycleState.resumed, context); } ///请求数据打开弹窗 diff --git a/lib/pages/home_page/home_page.dart b/lib/pages/home_page/home_page.dart index 9cbbe13..f71020e 100644 --- a/lib/pages/home_page/home_page.dart +++ b/lib/pages/home_page/home_page.dart @@ -47,7 +47,7 @@ class _HomePageState extends State with WidgetsBindingObserver { Logger.error(error); } Constants.isShowIntellectDialog = false; - AppUpdateUtil.updateApp(context); + TaobaoAuth.initAuth(context); // 弹窗 @@ -212,7 +212,10 @@ class _HomePageState extends State with WidgetsBindingObserver { // 活动弹窗 await ActivityDialog.show(context); + await AppUpdateUtil.updateApp(context); + IntellectCreate.checkAndCreateFirst(context); + } // 场景还原,记录邀请码 diff --git a/lib/widgets/goods_details/detail_img/goods_details_img.dart b/lib/widgets/goods_details/detail_img/goods_details_img.dart index 9053a85..54e4ac1 100644 --- a/lib/widgets/goods_details/detail_img/goods_details_img.dart +++ b/lib/widgets/goods_details/detail_img/goods_details_img.dart @@ -107,7 +107,7 @@ class _GoodsDetailsImgWidgetContainerState extends State