diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 3a69364..c4cfed9 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -45,7 +45,7 @@ android { applicationId "cn.zhios.zhiying" minSdkVersion 21 targetSdkVersion 28 - versionCode 1618056485 + versionCode 1618056480 versionName "10.6.0" aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false diff --git a/example/android/app/src/main/java/cn/zhios/zhiying_base_widget_example/MainActivity.java b/example/android/app/src/main/java/cn/zhios/zhiying_base_widget_example/MainActivity.java index d344ac2..df71b92 100644 --- a/example/android/app/src/main/java/cn/zhios/zhiying_base_widget_example/MainActivity.java +++ b/example/android/app/src/main/java/cn/zhios/zhiying_base_widget_example/MainActivity.java @@ -174,8 +174,8 @@ public class MainActivity extends FlutterActivity implements ZhiyingFlutterCommN // map.put("token", "123465"); -// map.put("domain", "http://api.shengder.com/");//"http://120.76.175.204:8989");http://47.114.51.254:80 http://inapi.izhyin.cn/ -// map.put("master_id", "98130614"); +// map.put("domain", "http://api.asmetymj.com/");//"http://120.76.175.204:8989");http://47.114.51.254:80 http://inapi.izhyin.cn/ +// map.put("master_id", "32053480"); // map.put("secret_key", "123456"); return map; } diff --git a/lib/pages/home_page/home_page.dart b/lib/pages/home_page/home_page.dart index 522144f..457cc39 100644 --- a/lib/pages/home_page/home_page.dart +++ b/lib/pages/home_page/home_page.dart @@ -356,13 +356,7 @@ class _HomePageState extends LifeState with WidgetsBindingObserver, Ti /// 3、活动弹窗 /// Future _showPolicy() async { - - - await Future.delayed(Duration(milliseconds: 600), () async { - //debug app不更新 app更新插件 - await AppUpdateUtil.initXUpdate(); - // 检查app更新 - await AppUpdateUtil.updateApp(context); + await Future.delayed(Duration(milliseconds: 1000), () async { // 通知弹窗 if (!await Permission.notification.isGranted || !await Permission.storage.isGranted) { @@ -373,9 +367,14 @@ class _HomePageState extends LifeState with WidgetsBindingObserver, Ti await AdvertisingDialog.show(context); IntellectCreate.checkAndCreateFirst(context); - }); + await Future.delayed(Duration(seconds: 3), () async { + //debug app不更新 app更新插件 + await AppUpdateUtil.initXUpdate(); + // 检查app更新 + await AppUpdateUtil.updateApp(context); + }); } // 场景还原,记录邀请码