From a5bc9c4e52f98032b287a42fd243c2ffcb7d58f6 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期一, 13 四月 2020 09:52:16 +0800
Subject: [PATCH] 消息

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v2/InviteControllerV2.java |   28 ++++++++++++++++++++--------
 1 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/InviteControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/InviteControllerV2.java
index a3ebca6..458ab2a 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/InviteControllerV2.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/InviteControllerV2.java
@@ -359,7 +359,7 @@
 					} else {
 						if (!threeSaleExtraInfoSerivce.isRemindWorker(uid, workerId)) {
 							object.put("weiXinState", 1);
-							object.put("weiXinTip", "鐐瑰嚮鎻愰啋TA锛岀郴缁熶細鍙戦�佷竴灏佺珯鍐呬俊锛屾彁閱掑叾娣诲姞寰俊鍙枫��");
+							object.put("weiXinTip", "鐐瑰嚮鎻愰啋锛岀郴缁熶細鍙戦�佷竴灏佺珯鍐呬俊锛屾彁閱掑叾娣诲姞寰俊鍙枫��");
 						} else {
 							object.put("weiXinState", 2);
 							object.put("weiXinTip", "绯荤粺宸插彂閫佹彁閱掞紝閭�璇蜂汉娣诲姞寰俊鍚庝綘鍙鍒讹紝濡傚鏂硅繜杩熶笉娣诲姞锛屼綘鍙仈绯讳汉宸ュ鏈嶅姹傚府鍔�");
@@ -471,7 +471,7 @@
 				validFans = true;
 			}
 			
-			// 鏈�杩戠櫥褰曟椂闂�
+			// 鏈�杩戠矇涓濈櫥褰曟椂闂�
 			Date lastLoginTime = new Date(threeSale.getCreateTime());
 			UserInfoExtra userInfoExtra = userInfoExtraService.getUserInfoExtra(workerId);
 			if (userInfoExtra != null && userInfoExtra.getActiveTime() != null) {
@@ -488,9 +488,9 @@
 			JSONArray array = new JSONArray();
 			array.add(loginJson);
 
-			// 绛夌骇
+			// 鏌ヨ绮変笣绛夌骇
 			UserInviteLevelEnum level = null;
-			UserVIPLevel vipLevel = userInviteService.getVIPLevelByUid(uid);
+			UserVIPLevel vipLevel = userInviteService.getVIPLevelByUid(workerId);
 			if (vipLevel != null) {
 				if (vipLevel.getLevel() == UserVIPLevel.LEVEL_3) {
 					level = UserInviteLevelEnum.actived;
@@ -523,8 +523,9 @@
 			
 			
 			// 鍒ゆ柇鏄惁瀛樺湪鑴辩鍏崇郴闃熷憳
-			if (vipLevel != null) {
-				UserInviteSeparate separate = userInviteSeparateService.selectByWorkerIdAndBossId(workerId, uid);
+			if (vipLevel != null && state) {
+				Long bossId = threeSale.getBoss().getId();
+				UserInviteSeparate separate = userInviteSeparateService.selectByWorkerIdAndBossId(workerId, bossId);
 				if (separate != null && separate.getEndTime() != null) {
 					try {
 						JSONObject contentJson1 = new JSONObject();
@@ -582,7 +583,7 @@
 				} else {
 					if (!threeSaleExtraInfoSerivce.isRemindWorker(uid, workerId)) {
 						object.put("weiXinState", 1);
-						object.put("weiXinTip", "鐐瑰嚮鎻愰啋TA锛岀郴缁熶細鍙戦�佷竴灏佺珯鍐呬俊锛屾彁閱掑叾娣诲姞寰俊鍙枫��");
+						object.put("weiXinTip", "鐐瑰嚮鎻愰啋锛岀郴缁熶細鍙戦�佷竴灏佺珯鍐呬俊锛屾彁閱掑叾娣诲姞寰俊鍙枫��");
 					} else {
 						object.put("weiXinState", 2);
 						object.put("weiXinTip", "绯荤粺宸插彂閫佹彁閱掞紝閭�璇蜂汉娣诲姞寰俊鍚庝綘鍙鍒讹紝濡傚鏂硅繜杩熶笉娣诲姞锛屼綘鍙仈绯讳汉宸ュ鏈嶅姹傚府鍔�");
@@ -727,7 +728,7 @@
 			} else {
 				if (!threeSaleExtraInfoSerivce.isRemindBoss(boss.getId(), uid)) {
 					bossData.put("weiXinState", 1);
-					bossData.put("weiXinTip", "鐐瑰嚮鎻愰啋TA锛岀郴缁熶細鍙戦�佷竴灏佺珯鍐呬俊锛屾彁閱掑叾娣诲姞寰俊鍙枫��");
+					bossData.put("weiXinTip", "鐐瑰嚮鎻愰啋锛岀郴缁熶細鍙戦�佷竴灏佺珯鍐呬俊锛屾彁閱掑叾娣诲姞寰俊鍙枫��");
 				} else {
 					bossData.put("weiXinState", 2);
 					bossData.put("weiXinTip", "绯荤粺宸插彂閫佹彁閱掞紝閭�璇蜂汉娣诲姞寰俊鍚庝綘鍙鍒讹紝濡傚鏂硅繜杩熶笉娣诲姞锛屼綘鍙仈绯讳汉宸ュ鏈嶅姹傚府鍔�");
@@ -907,6 +908,17 @@
 		JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(data));
 	}
 	
+	 
 	
+	@RequestMapping(value = "remvoeBreak")
+	public void remvoeBreak(String callback, AcceptData acceptData,Long inviteId, Long uid, Long tid, PrintWriter out) {
+		if (uid == null || inviteId == null || tid == null) {
+			JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("浼犺緭鍙傛暟涓嶅畬鏁�"));
+			return;
+		}
+		threeSaleSerivce.remvoeBreak(inviteId, uid, tid);
+		
+		JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult("鎿嶄綔鎴愬姛"));
+	}
 	
 }

--
Gitblit v1.8.0