Browse Source

特殊用户默认是vip

mingfu 3 weeks ago
parent
commit
40fc3b3449
1 changed files with 1 additions and 0 deletions
  1. 1 0
      ie-admin/src/main/java/com/ruoyi/web/service/CommService.java

+ 1 - 0
ie-admin/src/main/java/com/ruoyi/web/service/CommService.java

@@ -67,6 +67,7 @@ public class CommService {
             if (UserTypeEnum.isCard(user.getUserType())) {
             if (UserTypeEnum.isCard(user.getUserType())) {
                 throw new CustomException("没有权限,请开通VIP", 405);
                 throw new CustomException("没有权限,请开通VIP", 405);
             }
             }
+            return;
         }
         }
         DzCards card = cardsService.selectDzCardsByCardId(user.getCardId());
         DzCards card = cardsService.selectDzCardsByCardId(user.getCardId());
         Date nowDate = Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant());
         Date nowDate = Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant());