还原500
This commit is contained in:
+2
-3
@@ -32,11 +32,10 @@ public class FangjiaOpenExceptionHandler implements ExceptionHandler {
|
||||
} catch (Exception e1) {
|
||||
e1.printStackTrace();
|
||||
}
|
||||
// 临时改,后面还原 TODO
|
||||
context.getResponse().setStatus(503);
|
||||
context.getResponse().setStatus(500);
|
||||
context.getResponse().setCharacterEncoding("UTF-8");
|
||||
context.getResponse().setContentType("application/json;charset=UTF-8");
|
||||
context.getResponse().getWriter().println("{\"code\":503, \"msg\":\"服务升级中\"}");
|
||||
context.getResponse().getWriter().println("{\"code\":500, \"msg\":\"服务器内部错误\"}");
|
||||
}
|
||||
|
||||
public static String getLocalHostIP() {
|
||||
|
||||
Reference in New Issue
Block a user