| | |
| | | |
| | | |
| | | @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 { |