From 81ed418ee16df24b768a3f78cd22d02f020d6314 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期三, 08 一月 2020 13:58:47 +0800
Subject: [PATCH] 小黄条+ 首页弹框 版本区分

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v1/HelpController.java |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/HelpController.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/HelpController.java
index df4d4ca..fb61fd5 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/HelpController.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/HelpController.java
@@ -43,9 +43,11 @@
 			return;
 		}
 
-		AppPageNotification ap = appPageNotificationService.getValidNotificationByTypeCache(type);
-		if ("home".equalsIgnoreCase(type)
-				&& VersionUtil.smallerThan_1_5_1(acceptData.getPlatform(), acceptData.getVersion()) && ap != null) {
+		String platform = acceptData.getPlatform();
+		String version = acceptData.getVersion();
+		
+		AppPageNotification ap = appPageNotificationService.getValidNotificationByTypeCache(type,platform, Integer.parseInt(version));
+		if ("home".equalsIgnoreCase(type) && VersionUtil.smallerThan_1_5_1(platform, version) && ap != null) {
 			AppPageNotification no = new AppPageNotification();
 			no.setContentUrl("");
 			no.setMd5("111111111111111111");
@@ -54,7 +56,7 @@
 			no.setType(ap.getType());
 			no.setUpdateTime(ap.getUpdateTime());
 			no.setCanClose(false);
-			no.setContent(String.format("灏婃暚鐨勭敤鎴凤紝涓烘洿鍔犲噯纭珮鏁堢殑涓轰綘杩斿埄銆佺渷閽憋紝璇峰崌绾у埌%s鏈�鏂扮増鏈�",Constant.getAppName(acceptData.getPlatform(), acceptData.getVersion())));
+			no.setContent(String.format("灏婃暚鐨勭敤鎴凤紝涓烘洿鍔犲噯纭珮鏁堢殑涓轰綘杩斿埄銆佺渷閽憋紝璇峰崌绾у埌%s鏈�鏂扮増鏈�",Constant.getAppName(platform, version)));
 			Gson gson = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().create();
 			out.print(JsonUtil.loadTrueResult(gson.toJson(no)));
 			return;

--
Gitblit v1.8.0