From d46dea27b6ec3e0fb32ec7d137699e9fc7d609b0 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 12 十二月 2019 14:18:11 +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