yujian
2020-04-02 0ec22dcf4fd9c4496e6f681e7fab89f56c6e4e8a
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/InviteControllerV2.java
@@ -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();
@@ -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("操作成功"));
   }
   
}