admin
2020-04-30 aef1627c767ef3cb697973137843617bf4b943b4
fanli/src/main/java/com/yeshi/fanli/service/impl/user/vip/UserVIPPreInfoServiceImpl.java
@@ -93,6 +93,10 @@
   public void addUserVIPPreInfo(UserVIPPreInfo info) throws UserVIPPreInfoException {
      if (info == null || info.getUid() == null || info.getProcess() == null)
         throw new UserVIPPreInfoException(1, "信息不完整");
      for (Long fuid : Constant.NO_UPGRADE_UIDS) {// 禁止不能升级的用户升级
         if (info.getUid().longValue() == fuid)
            return;
      }
      UserVIPPreInfo oldInfo = userVIPPreInfoMapper.selectByUidAndProcess(info.getUid(), info.getProcess());
      if (oldInfo != null)
@@ -177,14 +181,13 @@
         }
      }
   }
   @Override
   @RequestSerializableByKeyService(key = "#uid")
   @Transactional(rollbackFor = Exception.class)
   public void upgradeVipByTeamNum(Long uid) {
      vipTeamVerify(uid);
   }
   @Override
   @RequestSerializableByKeyService(key = "#tid")
@@ -197,8 +200,6 @@
      vipTeamVerify(boss.getId());
   }
   /**
    * 验证用户是否满足升级队员条件
    * @param uid
@@ -220,11 +221,17 @@
      long limitFirst7 = 0;
      String first7 = userVipConfigService.getValueByKey("vip_pre_7_first_level_team_count");
      if (Constant.IS_TEST)
         first7 = "30";
      if (!StringUtil.isNullOrEmpty(first7)) {
         limitFirst7 = Long.parseLong(first7);
      }
      long limitSecond7 = 0;
      String second7 = userVipConfigService.getValueByKey("vip_pre_7_second_level_team_count");
      if (Constant.IS_TEST)
         second7 = "30";
      if (!StringUtil.isNullOrEmpty(second7)) {
         limitSecond7 = Long.parseLong(second7);
      }
@@ -238,9 +245,7 @@
         }
      }
   }
   /**
    * 二阶段
    *