소스 검색

1、修改vip效验异常抛出

rayson 6 달 전
부모
커밋
bcf0e848d7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      menduner/menduner-system-biz/src/main/java/com/citu/module/menduner/system/aop/VipEntitlementCheckAspect.java

+ 2 - 2
menduner/menduner-system-biz/src/main/java/com/citu/module/menduner/system/aop/VipEntitlementCheckAspect.java

@@ -41,7 +41,7 @@ public class VipEntitlementCheckAspect {
 
     @DSTransactional
     @Around("@annotation(vipEntitlementCheck)")
-    public Object around(ProceedingJoinPoint joinPoint, VipEntitlementCheck vipEntitlementCheck) {
+    public Object around(ProceedingJoinPoint joinPoint, VipEntitlementCheck vipEntitlementCheck) throws Throwable {
 
         boolean isEnterprise = VipEntitlementCheck.ENTERPRISE.equals(vipEntitlementCheck.userType());
         Long userId = LoginUserContext.getUserId();
@@ -51,7 +51,7 @@ public class VipEntitlementCheckAspect {
             return joinPoint.proceed();
         } catch (Throwable e) {
             e.getStackTrace();
-            throw exception(FORBIDDEN);
+            throw e;
         }
     }