From 19533a17aa55fafc70d0a385928e785cb50e1ebc Mon Sep 17 00:00:00 2001 From: admin <2780501319@qq.com> Date: 星期五, 30 七月 2021 02:05:14 +0800 Subject: [PATCH] 爱奇艺视频更新 --- src/main/java/com/yeshi/buwan/aspect/LoginAspect.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/aspect/LoginAspect.java b/src/main/java/com/yeshi/buwan/aspect/LoginAspect.java index 3b8b970..d294b97 100644 --- a/src/main/java/com/yeshi/buwan/aspect/LoginAspect.java +++ b/src/main/java/com/yeshi/buwan/aspect/LoginAspect.java @@ -20,15 +20,15 @@ @Around("execution(public * com.yeshi.buwan.controller.admin.api.*.*(..))") - public Object verifyLoginState(ProceedingJoinPoint joinPoint) throws IOException { + public Object verifyLoginState(ProceedingJoinPoint joinPoint) throws Throwable { ServletRequestAttributes servletContainer = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes(); HttpServletRequest request = servletContainer.getRequest(); -// AdminInfo admin = (AdminInfo) request.getSession().getAttribute(Constant.ADMIN); -// if(admin==null){ -// return null; -// } + AdminInfo admin = (AdminInfo) request.getSession().getAttribute(Constant.ADMIN); + if(admin==null){ + return null; + } Object[] args = joinPoint.getArgs(); Object obj = null; try { -- Gitblit v1.8.0