| | |
| | | // 验证是否满足升级高级会员
|
| | | if (doneZiGou >= limitZiGou7) {
|
| | | try {
|
| | | twoProcess(uid, limitZiGou7, null);
|
| | | twoProcess(uid, limitZiGou7, null, false);
|
| | | } catch (UserVIPPreInfoException e) {
|
| | |
|
| | | }
|
| | |
| | | // 验证是否满足升级高级会员
|
| | | if (doneFirst >= limitFirst7 && doneSecond >= limitSecond7) {
|
| | | try {
|
| | | twoProcess(uid, limitFirst7, limitSecond7);
|
| | | twoProcess(uid, limitFirst7, limitSecond7, true);
|
| | | } catch (UserVIPPreInfoException e) {
|
| | |
|
| | | }
|
| | |
| | | * @param secondTeam
|
| | | */
|
| | | @Transactional(rollbackFor = Exception.class)
|
| | | private void twoProcess(Long uid, long limit1, Long limit2) throws UserVIPPreInfoException {
|
| | | private void twoProcess(Long uid, long limit1, Long limit2, boolean teamPass) throws UserVIPPreInfoException {
|
| | | String item = null;
|
| | | if (limit2 == null) {
|
| | | item = "返利+分享订单";
|
| | | } else {
|
| | | if (teamPass) {
|
| | | item = "直接+间接粉丝";
|
| | | } else {
|
| | | item = "返利+分享订单";
|
| | | }
|
| | |
|
| | | Date upgradeTime = new Date();
|
| | |
| | | registerTime = userInfoRegister.getCreateTime();
|
| | | }
|
| | | int daysBetween = TimeUtil.getDayDifferenceCount(registerTime, upgradeTime);
|
| | | userAccountMsgNotificationService.vipPreUpgrade(uid, "快省达人", "高级会员", daysBetween, limit1, limit2);
|
| | | userAccountMsgNotificationService.vipPreUpgrade(uid, "快省达人", "高级会员", daysBetween, limit1, limit2, teamPass);
|
| | |
|
| | | // 直接粉丝升级提醒
|
| | | ThreeSale threeSale = threeSaleSerivce.getMyBoss(uid);
|