From 772c048171cb9b3fdc7e05b711d28458ef3e7543 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 13 十一月 2019 13:57:02 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/div' into div

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/redpack/RedPackWinInviteServiceImpl.java |   36 +++++++++++++++++++-----------------
 1 files changed, 19 insertions(+), 17 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/redpack/RedPackWinInviteServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/redpack/RedPackWinInviteServiceImpl.java
index 2050e41..d16ce64 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/redpack/RedPackWinInviteServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/redpack/RedPackWinInviteServiceImpl.java
@@ -12,7 +12,6 @@
 
 import com.google.gson.Gson;
 import com.yeshi.fanli.dao.mybatis.redpack.RedPackWinInviteMapper;
-import com.yeshi.fanli.dto.mq.user.body.UserAccountBindingMQMsg;
 import com.yeshi.fanli.dto.msg.MsgRedPackAddContentDTO;
 import com.yeshi.fanli.entity.bus.msg.MsgMoneyDetail.MsgTypeMoneyTypeEnum;
 import com.yeshi.fanli.entity.bus.user.UserActiveLog;
@@ -103,13 +102,13 @@
 		UserInfo boss = threeSaleSerivce.getBoss(uid);
 		if(boss != null) {
 			UserActiveLog activeLog = userActiveLogService.getUserLatestActiveInfo(boss.getId());
-			if (activeLog != null) {
-				// 灏忎簬2.0.2鐗堟湰涓嶅鍔犵Н鍒�
-				if (!VersionUtil.greaterThan_2_0_2("appstore".equalsIgnoreCase(activeLog.getChannel()) ? "ios" : "android",
-						activeLog.getVersionCode()))
-					return;
-			}
+			if (activeLog == null) 
+				return;
 			
+			// 灏忎簬2.0.2鐗堟湰涓嶅鍔�
+			if (!VersionUtil.greaterThan_2_0_2("appstore".equalsIgnoreCase(activeLog.getChannel()) ? "ios" : "android",
+					activeLog.getVersionCode()))
+				return;
 			
 			bossReward(boss.getId(), uid, source, orderNo);
 		}
@@ -182,7 +181,8 @@
 		dto.setTitle("绾㈠寘澧炲姞");
 		dto.setMoney("楼" + money.setScale(2));
 		dto.setBalance("楼" + redPackBalanceService.getBalance(uid).setScale(2));
-		userMoneyMsgNotificationService.redPackMsg(uid, MsgTypeMoneyTypeEnum.redPackFirstSharedOrder, new Gson().toJson(dto), "绾㈠寘鍙敤浜庤喘涔颁細鍛�");
+		userMoneyMsgNotificationService.redPackMsg(uid, MsgTypeMoneyTypeEnum.redPackFirstSharedOrder, 
+				new Gson().toJson(dto), "璇峰埌鈥滄垜鐨�-绾㈠寘鈥濅腑鏌ョ湅");
 	}
 	
 	
@@ -241,7 +241,8 @@
 		dto.setTitle("绾㈠寘澧炲姞");
 		dto.setMoney("楼" + money.setScale(2));
 		dto.setBalance("楼" + redPackBalanceService.getBalance(uid).setScale(2));
-		userMoneyMsgNotificationService.redPackMsg(uid, MsgTypeMoneyTypeEnum.redPackMonthSharedOrder, new Gson().toJson(dto), "绾㈠寘鍙敤浜庤喘涔颁細鍛�");
+		userMoneyMsgNotificationService.redPackMsg(uid, MsgTypeMoneyTypeEnum.redPackMonthSharedOrder,
+				new Gson().toJson(dto), "璇峰埌鈥滄垜鐨�-绾㈠寘鈥濅腑鏌ョ湅");
 	}
 	
 	
@@ -256,14 +257,14 @@
 			return;
 		
 		UserActiveLog activeLog = userActiveLogService.getUserLatestActiveInfo(boss.getId());
-		if (activeLog != null) {
-			// 灏忎簬2.0.2鐗堟湰涓嶅鍔犵Н鍒�
-			if (!VersionUtil.greaterThan_2_0_2("appstore".equalsIgnoreCase(activeLog.getChannel()) ? "ios" : "android",
-					activeLog.getVersionCode()))
-				return;
-		}
+		if (activeLog == null)
+			return;
 		
-		
+		// 灏忎簬2.0.2鐗堟湰涓嶅鍔�
+		if (!VersionUtil.greaterThan_2_0_2("appstore".equalsIgnoreCase(activeLog.getChannel()) ? "ios" : "android",
+				activeLog.getVersionCode()))
+			return;
+
 		// 鍚屼竴闃熷憳濂栧姳涓�娆�
 		long totalReward = redPackWinInviteMapper.countByUidAndTeamUidAndType(boss.getId(), uid, RedPackWinInviteTypeEnum.inviteSucceed.name());
 		if (totalReward > 0)
@@ -322,7 +323,8 @@
 			dto.setTitle("绾㈠寘澧炲姞");
 			dto.setMoney("楼" + money.setScale(2));
 			dto.setBalance("楼" + redPackBalanceService.getBalance(boss.getId()).setScale(2));
-			userMoneyMsgNotificationService.redPackMsg(boss.getId(), MsgTypeMoneyTypeEnum.redPackInviteSucceed, new Gson().toJson(dto), "绾㈠寘鍙敤浜庤喘涔颁細鍛�");
+			userMoneyMsgNotificationService.redPackMsg(boss.getId(), MsgTypeMoneyTypeEnum.redPackInviteSucceed,
+					new Gson().toJson(dto), "璇峰埌鈥滄垜鐨�-绾㈠寘鈥濅腑鏌ョ湅");
 		}
 	}
 	

--
Gitblit v1.8.0