From 56bcbcf230f4ce53376c7ccc99b91990d3375f9d Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 01 十一月 2019 17:06:02 +0800
Subject: [PATCH] 板栗商城
---
fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java | 38 +++++++++++++++++++++++++++++++++++++-
1 files changed, 37 insertions(+), 1 deletions(-)
diff --git a/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java b/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java
index 5f9da68..6aa32c2 100644
--- a/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java
+++ b/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java
@@ -37,11 +37,47 @@
public static boolean greaterThan_1_6_0(String platform, String versionCode) {
if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 46))
- || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 57)))
+ || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 58)))
return true;
else
return false;
}
+
+ public static boolean greaterThan_1_6_5(String platform, String versionCode) {
+ if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 47))
+ || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 65)))
+ return true;
+ else
+ return false;
+ }
+
+
+
+ public static boolean greaterThan_2_0(String platform, String versionCode) {
+ if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 48))
+ || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 66)))
+ return true;
+ else
+ return false;
+ }
+
+
+ public static boolean greaterThan_2_0_1(String platform, String versionCode) {
+ if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 50))
+ || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 67)))
+ return true;
+ else
+ return false;
+ }
+
+ public static boolean greaterThan_2_0_2(String platform, String versionCode) {
+ if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 51))
+ || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 70)))
+ return true;
+ else
+ return false;
+ }
+
public static boolean smallerThan_1_5_1(String platform, String versionCode) {
if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) < 36))
--
Gitblit v1.8.0