From a3702e82ebb2c3b2480734fc44c464092aeb9457 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期日, 26 四月 2020 16:48:32 +0800
Subject: [PATCH] 客户端等级升级bug修改

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v1/ConfigController.java |   25 ++++++++++---------------
 1 files changed, 10 insertions(+), 15 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/ConfigController.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/ConfigController.java
index f61e145..ed79d4c 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/ConfigController.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/ConfigController.java
@@ -102,11 +102,10 @@
 
 	@Resource
 	private UserInfoService userInfoService;
-	
-	
+
 	@Resource
 	private UserVIPInfoService userVIPInfoService;
-	
+
 	@Resource
 	private UserVIPPreInfoService userVIPPreInfoService;
 
@@ -115,10 +114,9 @@
 
 	@Resource
 	private ThreeSaleSerivce threeSaleSerivce;
-	
+
 	@Resource
 	private UserVipConfigService userVipConfigService;
-	
 
 	/**
 	 * s 棣栭〉閰嶇疆淇℃伅
@@ -371,19 +369,19 @@
 					data.put("tearcherLink", tearcherLink);
 				}
 			}
-
-			
+
 			if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion())) {
 				// TODO 楠岃瘉鏄惁鏄甯�
-				
+				UserVIPPreInfo info = userVIPPreInfoService.getLatestProcessInfo(uid);
+
 				JSONObject inner = new JSONObject();
 				inner.put("link", userVipConfigService.getValueByKey("vip_link"));
 				inner.put("ion", "http://img.flqapp.com/resource/vip/icon_vip.png");
 				inner.put("title", "鍏嶈垂鍗囩骇 浜細鍛樻潈鐩�");
 				inner.put("btnName", "鍗囩骇浼氬憳");
+
 				if (uid != null) {
-					// 鏄惁瀵煎笀 TODO
-					if (userVIPInfoService.isVIP(uid)) {
+					if (info!=null&&info.getProcess()==UserVIPPreInfo.PROCESS_3) {
 						inner.put("link", userVipConfigService.getValueByKey("vip_link"));
 						inner.put("ion", "http://img.flqapp.com/resource/vip/icon_tearcher.png");
 						inner.put("title", "鎷夸簲闄╀笌娲ヨ创 浜甯堟潈鐩�");
@@ -400,10 +398,10 @@
 					}
 				}
 				data.put("vip", inner);
-				//骞冲彴瑙勫垯
+				// 骞冲彴瑙勫垯
 				String platformRuleLink = configService.get(ConfigKeyEnum.platformRule.getKey());
 				data.put("platformRule", platformRuleLink);
-			}
+			}
 
 			if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion()) && uid != null) {
 				UserLevelUpgradedNotify notify = userLevelUpgradedNotifyService.getNeedNotifyByUid(uid);
@@ -429,9 +427,6 @@
 			e.printStackTrace();
 		}
 	}
-	
-	
-	
 
 	// 鑾峰彇鍗囩骇鏃堕棿
 	private Date getUpgradedTime(Long uid, UserLevelEnum level) {

--
Gitblit v1.8.0