diff --git a/lib/pages/home_page/home_page.dart b/lib/pages/home_page/home_page.dart index df9267b..3158774 100644 --- a/lib/pages/home_page/home_page.dart +++ b/lib/pages/home_page/home_page.dart @@ -94,9 +94,9 @@ class _HomePageState extends State with WidgetsBindingObserver, Ticker ///初始化各种监听 initAsync() async { try { - Future.delayed(Duration(milliseconds: 10), () async { - await AdvertisingUtils.openSplashAd(); - }); + // Future.delayed(Duration(milliseconds: 10), () async { + // await AdvertisingUtils.openSplashAd(); + // }); WidgetsBinding.instance.addObserver(this); diff --git a/lib/pages/launch_page/launch_page.dart b/lib/pages/launch_page/launch_page.dart index 6b4c83d..53d897a 100644 --- a/lib/pages/launch_page/launch_page.dart +++ b/lib/pages/launch_page/launch_page.dart @@ -79,6 +79,9 @@ class _LaunchPageState extends State with TickerProviderStateMixin { if (versionNumber == null || versionNumber == '' || versionNumber != currentVersionCode) { await _showGuideImage(); SharedPreferencesUtil.setStringValue(Constants.versionNumber, currentVersionCode); + } else { + bool result = await AdvertisingUtils.openSplashAd(); + print("广告加载" + result.toString()); } if (widget.builder != null) {