|
|
@ -337,7 +337,7 @@ class _MainPage extends State<MainPage> with WidgetsBindingObserver { |
|
|
|
PackageInfo packageInfo = await PackageInfo.fromPlatform(); |
|
|
|
PackageInfo packageInfo = await PackageInfo.fromPlatform(); |
|
|
|
BaseData<AppUpdate> baseData = await apiService.appVersion().catchError((onError) {}); |
|
|
|
BaseData<AppUpdate> baseData = await apiService.appVersion().catchError((onError) {}); |
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
baseData.data.appLastVersion = "1.0.4"; |
|
|
|
baseData.data.appLastVersion = "1.0.5"; |
|
|
|
baseData.data.appLastVersionUp = "1.0.1"; |
|
|
|
baseData.data.appLastVersionUp = "1.0.1"; |
|
|
|
if(AppUtils.versionCompare(packageInfo.version,baseData.data?.appLastVersion) |
|
|
|
if(AppUtils.versionCompare(packageInfo.version,baseData.data?.appLastVersion) |
|
|
|
&& AppUtils.versionCompare(value.getString("appLastVersion")??"1.0.0",baseData.data?.appLastVersion)){ |
|
|
|
&& AppUtils.versionCompare(value.getString("appLastVersion")??"1.0.0",baseData.data?.appLastVersion)){ |
|
|
|