diff --git a/src/main/java/cn/czyx007/reggie/filter/LoginCheckFilter.java b/src/main/java/cn/czyx007/reggie/filter/LoginCheckFilter.java
index 44310d3..7e5b0df 100644
--- a/src/main/java/cn/czyx007/reggie/filter/LoginCheckFilter.java
+++ b/src/main/java/cn/czyx007/reggie/filter/LoginCheckFilter.java
@@ -1,8 +1,6 @@
package cn.czyx007.reggie.filter;
import cn.czyx007.reggie.common.BaseContext;
-import cn.czyx007.reggie.common.R;
-import com.alibaba.fastjson.JSON;
import org.springframework.util.AntPathMatcher;
import javax.servlet.*;
@@ -57,6 +55,10 @@ public class LoginCheckFilter implements Filter {
return;
}
- response.getWriter().write(JSON.toJSONString(R.error("NOTLOGIN")));
+// response.getWriter().write(JSON.toJSONString(R.error("NOTLOGIN")));
+ response.setContentType("text/html;charset=UTF-8");
+ response.getWriter().write("未登录!请先跳转以下页面登录
\n" +
+ "后台页面跳转
\n" +
+ "用户页面跳转");
}
}