From abb75903a5b10e33501d785628455ca34d8ce013 Mon Sep 17 00:00:00 2001 From: PH2 <1293456824@qq.com> Date: Tue, 10 Nov 2020 14:27:29 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81app=E7=89=88=E6=9C=AC=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/util/update/app_update_util.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/util/update/app_update_util.dart b/lib/util/update/app_update_util.dart index 550800b..2b411b4 100644 --- a/lib/util/update/app_update_util.dart +++ b/lib/util/update/app_update_util.dart @@ -121,12 +121,11 @@ class AppUpdateUtil { // }, // "msg": "ok" // }; - PackageInfo packageInfo = await PackageInfo.fromPlatform(); var result = await NetUtil.post('/api/v1/appcheck', method: NetMethod.GET); AppUpdateModel model = AppUpdateModel.fromJson(result[GlobalConfig.HTTP_RESPONSE_KEY_DATA]); if (!EmptyUtil.isEmpty(model)) { return UpdateEntity( - hasUpdate: model?.dialog == '1' || model?.isForce == '1', + hasUpdate: model?.dialog == '1', isIgnorable: model?.isIgnore == '1' && model?.isForce != '1', isForce: model?.isForce == '1', versionCode: int.parse(model?.appVersion ?? '1'),