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