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