| | |
| | | @Resource |
| | | private AdminUserService adminUserService; |
| | | |
| | | // @Around("execution(public * com.yeshi.fanli.controller.admin..*.*(..))") |
| | | @Around("execution(public * com.yeshi.fanli.controller.admin..*.*(..))") |
| | | public Object verifyLoginState(ProceedingJoinPoint joinPoint) throws IOException { |
| | | |
| | | Signature signature = joinPoint.getSignature(); |
| | |
| | | HttpServletResponse response = servletContainer.getResponse(); |
| | | String callback = request.getParameter("callback"); |
| | | if (StringUtil.isNullOrEmpty(callback)) { |
| | | response.getWriter().print(JsonUtil.loadFalseResult(1, "请先登录")); |
| | | response.getWriter().print(JsonUtil.loadFalseResult(10001, "请先登录")); |
| | | } else { |
| | | response.getWriter().print(callback + "(" + JsonUtil.loadFalseResult(1, "请先登录") + ")"); |
| | | response.getWriter().print(callback + "(" + JsonUtil.loadFalseResult(10001, "请先登录") + ")"); |
| | | } |
| | | |
| | | return null; |