From 140470bbc576ba7c2933d207d25a66c67c7de8a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=81=A5?= Date: Fri, 27 Dec 2024 16:09:03 +0800 Subject: [PATCH] =?UTF-8?q?500=E9=94=99=E8=AF=AF=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=9C=8D=E5=8A=A1=E5=8D=87=E7=BA=A7=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../open/exceptionhander/FangjiaOpenExceptionHandler.java | 2 +- .../fangjia/open/interceptors/AuthenticationInterceptor.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/fangjia-open/src/main/java/com/fangjia/open/exceptionhander/FangjiaOpenExceptionHandler.java b/projects/fangjia-open/src/main/java/com/fangjia/open/exceptionhander/FangjiaOpenExceptionHandler.java index 7848e9b25..3b2021dce 100644 --- a/projects/fangjia-open/src/main/java/com/fangjia/open/exceptionhander/FangjiaOpenExceptionHandler.java +++ b/projects/fangjia-open/src/main/java/com/fangjia/open/exceptionhander/FangjiaOpenExceptionHandler.java @@ -35,7 +35,7 @@ public class FangjiaOpenExceptionHandler implements ExceptionHandler { context.getResponse().setStatus(500); context.getResponse().setCharacterEncoding("UTF-8"); context.getResponse().setContentType("application/json;charset=UTF-8"); - context.getResponse().getWriter().println("{\"code\":500, \"msg\":\"服务器内部错误\"}"); + context.getResponse().getWriter().println("{\"code\":500, \"msg\":\"服务升级中...\"}"); } public static String getLocalHostIP() { diff --git a/projects/fangjia-open/src/main/java/com/fangjia/open/interceptors/AuthenticationInterceptor.java b/projects/fangjia-open/src/main/java/com/fangjia/open/interceptors/AuthenticationInterceptor.java index b3e60dcbd..c04cab406 100644 --- a/projects/fangjia-open/src/main/java/com/fangjia/open/interceptors/AuthenticationInterceptor.java +++ b/projects/fangjia-open/src/main/java/com/fangjia/open/interceptors/AuthenticationInterceptor.java @@ -111,7 +111,7 @@ public class AuthenticationInterceptor implements Interceptor { String ip = getLocalHostIP(); String token = "2307d2fec8314b3e8b4b83dd1d42da2e2051638e3e668f21e77ca01258bf682c"; try { - DingDingMessageUtil.sendTextMessage(token, "[OpenApi] "+ip+"服务器内部错误,请及时关注!"); + DingDingMessageUtil.sendTextMessage(token, "[OpenApi] "+ip+"Authentication error!"); } catch (Exception e1) { e1.printStackTrace(); }