From dcc4ca030fe1bc82fbf395cef8cda53100783d13 Mon Sep 17 00:00:00 2001 From: gaoqr <13665037151@163.com> Date: Fri, 12 Jun 2026 17:32:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=85=E9=81=93bug#1513=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gateway/filter/security/TokenAuthenticationFilter.java | 4 ++-- .../src/main/resources/message_errorcode_cht.properties | 4 ++-- cf-gateway/src/main/resources/message_errorcode_en.properties | 4 ++-- cf-gateway/src/main/resources/message_errorcode_zh.properties | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cf-gateway/src/main/java/com/cf/imes/gateway/filter/security/TokenAuthenticationFilter.java b/cf-gateway/src/main/java/com/cf/imes/gateway/filter/security/TokenAuthenticationFilter.java index 33f92fa58..4186bc35e 100644 --- a/cf-gateway/src/main/java/com/cf/imes/gateway/filter/security/TokenAuthenticationFilter.java +++ b/cf-gateway/src/main/java/com/cf/imes/gateway/filter/security/TokenAuthenticationFilter.java @@ -171,9 +171,9 @@ public class TokenAuthenticationFilter implements GlobalFilter, Ordered { } else if (ORGAN_NOT_EXISTS.getCode().equals(code)) { throw new ServiceException(ORGAN_NOT_EXISTS, locale); } else if (ORGAN_DISABLE.getCode().equals(code)) { - throw new ServiceException(new ErrorCode(code, msg), locale, args); + throw new ServiceException(ORGAN_DISABLE, locale); } else if (ORGAN_EXPIRE.getCode().equals(code)) { - throw new ServiceException(new ErrorCode(code, msg), locale, args); + throw new ServiceException(ORGAN_EXPIRE, locale); } } } diff --git a/cf-gateway/src/main/resources/message_errorcode_cht.properties b/cf-gateway/src/main/resources/message_errorcode_cht.properties index 79e33400e..c8c69eaab 100644 --- a/cf-gateway/src/main/resources/message_errorcode_cht.properties +++ b/cf-gateway/src/main/resources/message_errorcode_cht.properties @@ -1,6 +1,6 @@ token.time.is_expires=當前token已過期,請重新配置或延長時間 token.config.not_exists=當前應用的token配置不存在 organ.not_exists=組織不存在 -organ.disable=[{0}]組織已被禁用 -organ.expire=[{0}]組織已過期 +organ.disable=組織已被禁用 +organ.expire=組織已過期 global.error.default.error=系統繁忙,請稍後再試 \ No newline at end of file diff --git a/cf-gateway/src/main/resources/message_errorcode_en.properties b/cf-gateway/src/main/resources/message_errorcode_en.properties index c785078e3..ddaa04e31 100644 --- a/cf-gateway/src/main/resources/message_errorcode_en.properties +++ b/cf-gateway/src/main/resources/message_errorcode_en.properties @@ -1,6 +1,6 @@ token.time.is_expires=The current token has expired. Please reconfigure or extend the validity period token.config.not_exists=The token configuration for the current application does not exist organ.not_exists=Organization does not exist -organ.disable=Organization [{0}] has been disabled -organ.expire=Organization [{0}] has expired +organ.disable=Organization has been disabled +organ.expire=Organization has expired global.error.default.error=System is busy, please try again later \ No newline at end of file diff --git a/cf-gateway/src/main/resources/message_errorcode_zh.properties b/cf-gateway/src/main/resources/message_errorcode_zh.properties index 8b082d8b0..d610eb28b 100644 --- a/cf-gateway/src/main/resources/message_errorcode_zh.properties +++ b/cf-gateway/src/main/resources/message_errorcode_zh.properties @@ -1,6 +1,6 @@ token.time.is_expires=当前token已过期,请重新配置或延长时间 token.config.not_exists=当前应用的token配置不存在 organ.not_exists=组织不存在 -organ.disable=[{0}]组织已被禁用 -organ.expire=[{0}]组织已过期 +organ.disable=组织已被禁用 +organ.expire=组织已过期 global.error.default.error=系统繁忙,请稍后再试 \ No newline at end of file