woody 4 mēneši atpakaļ
vecāks
revīzija
728294722d

+ 1 - 4
framework-base/src/main/java/com/chelvc/framework/base/interceptor/VersionControlInterceptor.java

@@ -54,9 +54,6 @@ public class VersionControlInterceptor implements HandlerInterceptor, WebMvcConf
                     if (environment != null && StringUtils.notEmpty(message)) {
                         message = environment.resolvePlaceholders(message);
                     }
-                    if (StringUtils.isEmpty(message)) {
-                        message = ApplicationContextHolder.getMessage("Version.Control.Limit");
-                    }
                     throw new ResourceUnavailableException(message);
                 }
             }
@@ -65,7 +62,7 @@ public class VersionControlInterceptor implements HandlerInterceptor, WebMvcConf
         // 终端最低版本配置校验
         String minimum = ApplicationContextHolder.getProperty(terminal.name().toLowerCase() + ".version.minimum");
         if (StringUtils.notEmpty(minimum) && !SessionContextHolder.isAfterVersion(terminal, minimum, true)) {
-            throw new ResourceUnavailableException(ApplicationContextHolder.getMessage("Version.Control.Limit"));
+            throw new ResourceUnavailableException(ApplicationContextHolder.getMessage("Version.Minimum.Limit"));
         }
         return true;
     }