From 9a021812118be3bf7100538190767c9a710b732f Mon Sep 17 00:00:00 2001
From: zyx <1029606625@qq.com>
Date: Tue, 28 Feb 2023 21:15:40 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=AC=A2=E8=BF=8E=E9=A1=B5?=
=?UTF-8?q?=E5=BC=95=E5=AF=BC=E8=B7=B3=E8=BD=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../java/cn/czyx007/reggie/filter/LoginCheckFilter.java | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
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" +
+ "用户页面跳转");
}
}