From 3bffb8cd1bbe11e95f8fe31652cedea73dd831c2 Mon Sep 17 00:00:00 2001
From: admin <2780501319@qq.com>
Date: 星期一, 29 三月 2021 01:08:42 +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