From 32da899ed6fc27994cdfdb731a0ff450c7a24af4 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期五, 13 十二月 2019 17:51:52 +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 70f53b6..863ddaf 100644
--- a/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java
+++ b/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java
@@ -45,7 +45,43 @@
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) >= 59)))
+ || (("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 greaterThan_2_1(String platform, String versionCode) {
+ if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 52))
+ || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 75)))
return true;
else
return false;
--
Gitblit v1.8.0