From 56481656c7de11cdca69c1a7dd69db176ffd9ecd Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 08 五月 2021 12:49:30 +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