From 0730e3162f70a1f7b149c879a2a9dbfaf9a94e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Thu, 15 Apr 2021 18:29:02 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=B0=83=E6=95=B4=E5=BA=94=E7=94=A8=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/android/app/build.gradle | 2 +- .../zhiying_base_widget_example/MainActivity.java | 4 ++-- lib/pages/home_page/home_page.dart | 15 +++++++-------- 3 files changed, 10 insertions(+), 11 deletions(-) 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); + }); } // 场景还原,记录邀请码