Commit dba24153 authored by lee_mingzhu's avatar lee_mingzhu

修改过滤器返回,之前多做了一次转换。导致前端接收到的返回结果是字符串

parent ff7d6631
......@@ -54,7 +54,7 @@ public class RequestFilter implements Filter {
response.setStatus(401);
response.setHeader("Content-Type", "application/json;charset=utf-8");
PrintWriter writer = response.getWriter();
writer.print(JSONObject.toJSONString(UNAUTH_RESULT));
writer.print(UNAUTH_RESULT);
writer.close();
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment