From a6f34b99ee20e528b766c8ed5a61bd9c5aa0e7ae Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 16 十一月 2019 18:10:33 +0800 Subject: [PATCH] 淘宝相似商品推荐接口优化,根据商品ID搜索商品基本信息优化 --- fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java | 72 +++++++++++++++++++++++++++++++++++ 1 files changed, 71 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 efe9679..191764c 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java @@ -12,11 +12,81 @@ 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) >= 51))) + || (("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) >= 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 greaterThan_2_1(String platform, String versionCode) { + if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 52)) + || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 71))) + 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