From e1a62ec62e7331d97af9302e90e1ce44af8235eb Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 27 一月 2021 15:26:55 +0800 Subject: [PATCH] 拼多多授权绑定 --- fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java | 40 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 40 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 cb50e4d..98771b9 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java @@ -89,7 +89,47 @@ else return false; } + + public static boolean greaterThan_2_0_7(String platform, String versionCode) { + if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 55)) + || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 77))) + return true; + else + return false; + } + public static boolean greaterThan_2_1(String platform, String versionCode) { + if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 56)) + || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 78))) + return true; + else + return false; + } + + public static boolean greaterThan_2_1_1(String platform, String versionCode) { + if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 57)) + || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 81))) + return true; + else + return false; + } + + public static boolean greaterThan_2_1_2(String platform, String versionCode) { + if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 58)) + || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 82))) + return true; + else + return false; + } + + public static boolean greaterThan_2_1_3(String platform, String versionCode) { + if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 59)) + || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 83))) + 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