admin
2020-04-15 ee5c8055b1c0dd7c67a9025a76b10bd287c93d9a
fanli/src/main/java/com/yeshi/fanli/aspect/AdminLoginAspect.java
@@ -35,7 +35,7 @@
   @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();
@@ -96,9 +96,9 @@
               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;