From d1d0b4b9f4452fb6e9b6e39168f503d5b302c999 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 11 一月 2022 11:26:35 +0800 Subject: [PATCH] 部分功能添加 --- fanli/src/main/java/com/yeshi/fanli/controller/apph5/AppH5HelpCenterController.java | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/apph5/AppH5HelpCenterController.java b/fanli/src/main/java/com/yeshi/fanli/controller/apph5/AppH5HelpCenterController.java index 501919f..48f0a40 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/apph5/AppH5HelpCenterController.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/apph5/AppH5HelpCenterController.java @@ -84,6 +84,14 @@ String platform = acceptData.getPlatform().toLowerCase(); List<AppVersionInfo> versionList = appVersionService.listByPlatformAndMinVersionCode(platform, version, acceptData.getSystem()); if (versionList == null || versionList.size() <= 0) { + //闄嶇骇 + versionList = appVersionService.listByPlatformAndMaxVersionCode(platform, version, acceptData.getSystem()); + if(versionList!=null&&versionList.size()>0) { + version = versionList.get(versionList.size() - 1).getVersionCode(); + versionList = appVersionService.listByPlatformAndMinVersionCode(platform, version, acceptData.getSystem()); + } + } + if (versionList == null || versionList.size() <= 0) { list.clear(); } else { List<Long> sourceIdList = new ArrayList<>(); @@ -158,7 +166,6 @@ * @param out */ @RequestMapping(value = "getClass") - //TODO 鏀硅繘鐗堟湰杩囬珮鐨勯棶棰� public void getClass(String callback, AcceptData acceptData, PrintWriter out) { if (acceptData.getSystem() == null) acceptData.setSystem(SystemEnum.blks); @@ -175,6 +182,15 @@ String platform = acceptData.getPlatform().toLowerCase(); List<AppVersionInfo> versionList = appVersionService.listByPlatformAndMinVersionCode(platform, version, acceptData.getSystem()); if (versionList == null || versionList.size() <= 0) { + //闄嶇骇 + versionList = appVersionService.listByPlatformAndMaxVersionCode(platform, version, acceptData.getSystem()); + if(versionList!=null&&versionList.size()>0) { + version = versionList.get(versionList.size() - 1).getVersionCode(); + versionList = appVersionService.listByPlatformAndMinVersionCode(platform, version, acceptData.getSystem()); + } + } + + if (versionList == null || versionList.size() <= 0) { resultList.clear(); } else { List<Long> sourceIdList = new ArrayList<>(); -- Gitblit v1.8.0