From 15f14208c599f2c7516671bebd83c6ae89c8cda4 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期一, 05 八月 2019 16:52:32 +0800 Subject: [PATCH] 维权金额调整 --- fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 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 52e5b8f..5f9da68 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java @@ -9,8 +9,40 @@ else return false; } + + public static boolean greaterThan_1_5_50(String platform, String versionCode) { + if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 42)) + || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 52))) + return true; + else + return false; + } + + public static boolean greaterThan_1_5_60(String platform, String versionCode) { + if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 43)) + || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 54))) + return true; + else + return false; + } + public static boolean greaterThan_1_5_70(String platform, String versionCode) { + if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 45)) + || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 56))) + return true; + else + return false; + } + + 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))) + return true; + else + return false; + } + public static boolean smallerThan_1_5_1(String platform, String versionCode) { if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) < 36)) || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) < 44))) -- Gitblit v1.8.0