Prechádzať zdrojové kódy

1、修改vip效验异常抛出

rayson 6 mesiacov pred
rodič
commit
bcf0e848d7

+ 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;
         }
     }