From b47fb09eaffa4a13c0d63e823cb9319bcb775249 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 02 四月 2020 15:22:11 +0800
Subject: [PATCH] 发圈修改

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/user/vip/UserVIPInfoServiceImpl.java |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/vip/UserVIPInfoServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/vip/UserVIPInfoServiceImpl.java
index fa08979..60bc449 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/vip/UserVIPInfoServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/vip/UserVIPInfoServiceImpl.java
@@ -13,6 +13,7 @@
 
 import com.yeshi.fanli.dao.mybatis.user.vip.UserVIPInfoMapper;
 import com.yeshi.fanli.dto.msg.MsgAccountVipDTO;
+import com.yeshi.fanli.dto.msg.MsgOtherSystemGiveDTO;
 import com.yeshi.fanli.entity.bus.msg.MsgAccountDetail;
 import com.yeshi.fanli.entity.bus.msg.MsgAccountDetail.MsgTypeAccountTypeEnum;
 import com.yeshi.fanli.entity.bus.user.HongBaoV2;
@@ -168,11 +169,11 @@
 	public void applyVIP(Long uid) throws UserVIPInfoException {
 		UserVIPPreInfo latestProcess = userVIPPreInfoService.getLatestProcessInfo(uid);
 		if (latestProcess == null || latestProcess.getProcess() != UserVIPPreInfo.PROCESS_2) {
-			throw new UserVIPInfoException(1, "璇ョ敤鎴疯繕涓嶆槸楂樼骇浼氬憳");
+			throw new UserVIPInfoException(1, "璇峰厛鍗囩骇涓洪珮绾т細鍛�");
 		}
 
 		if (!verifyVip(uid))
-			throw new UserVIPInfoException(1, "绯荤粺楠岃瘉锛氫笉婊¤冻鍗囩骇鏉′欢");
+			throw new UserVIPInfoException(1, "涓嶆弧瓒冲崌绾ф潯浠�");
 
 		UserVIPInfo userInfo = userVIPInfoMapper.selectByPrimaryKeyForUpdate(uid);
 		if (userInfo == null) {
@@ -248,6 +249,13 @@
 					userSystemCouponService.insertUserCoupon(uid, CouponTypeEnum.freeCouponGive.name(),
 							UserSystemCoupon.SOURCE_SYSTEM_PUSH, null, false);
 				}
+				
+				// 娑堟伅
+				MsgOtherSystemGiveDTO dto = new MsgOtherSystemGiveDTO();
+				dto.setName("绯荤粺璧犻�� ");
+				dto.setReason("鎭枩浣狅紒鎴愬姛鍗囩骇涓鸿秴绾т細鍛�");
+				dto.setDesc("鑾峰緱璧犻�佸厤鍗曞埜" + num +"寮�");
+				userOtherMsgNotificationService.vipUpgradeReward(uid, "璇︽儏鏌ョ湅锛屽搴斾細鍛樻潈鐩�", dto);
 			}
 		} catch (Exception e) {
 			throw new UserVIPInfoException(1, "鍒歌禒閫佸け璐�");

--
Gitblit v1.8.0