yujian
2020-04-13 a5bc9c4e52f98032b287a42fd243c2ffcb7d58f6
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("操作成功"));
   }
   
}