Commit 69a19e1f by xuxueli

I18N国际化完善、参数名重构,合并PR-2888、PR-3006;

1 parent 7cb368e6
...@@ -2809,7 +2809,7 @@ public void execute() { ...@@ -2809,7 +2809,7 @@ public void execute() {
- 7、【升级】升级多项maven依赖至较新版本; - 7、【升级】升级多项maven依赖至较新版本;
- 8、【优化】调度组件触发判断优化,合并PR-2502; - 8、【优化】调度组件触发判断优化,合并PR-2502;
- 9、【优化】调度日志调整,完善日志参数信息,合并PR-2761; - 9、【优化】调度日志调整,完善日志参数信息,合并PR-2761;
- 10、【优化】I18N国际化完善,合并PR-2888; - 10、【优化】I18N国际化完善、参数名重构,合并PR-2888、PR-3006;
- 11、【优化】告警组件初始化重构,提升代码可维护性,合并PR-2903; - 11、【优化】告警组件初始化重构,提升代码可维护性,合并PR-2903;
- 12、【优化】一致性哈希路由算法优化,重构哈希环逻辑提升代码简洁性; - 12、【优化】一致性哈希路由算法优化,重构哈希环逻辑提升代码简洁性;
......
...@@ -100,7 +100,7 @@ public class LoginController { ...@@ -100,7 +100,7 @@ public class LoginController {
} }
password = password.trim(); password = password.trim();
if (!(password.length()>=4 && password.length()<=20)) { if (!(password.length()>=4 && password.length()<=20)) {
return Response.ofFail(I18nUtil.getString("system_lengh_limit")+"[4-20]" ); return Response.ofFail(I18nUtil.getString("system_length_limit")+"[4-20]" );
} }
// md5 password // md5 password
......
...@@ -87,7 +87,7 @@ public class JobUserController { ...@@ -87,7 +87,7 @@ public class JobUserController {
} }
xxlJobUser.setUsername(xxlJobUser.getUsername().trim()); xxlJobUser.setUsername(xxlJobUser.getUsername().trim());
if (!(xxlJobUser.getUsername().length()>=4 && xxlJobUser.getUsername().length()<=20)) { if (!(xxlJobUser.getUsername().length()>=4 && xxlJobUser.getUsername().length()<=20)) {
return Response.ofFail(I18nUtil.getString("system_lengh_limit")+"[4-20]" ); return Response.ofFail(I18nUtil.getString("system_length_limit")+"[4-20]" );
} }
// valid password // valid password
if (StringTool.isBlank(xxlJobUser.getPassword())) { if (StringTool.isBlank(xxlJobUser.getPassword())) {
...@@ -95,7 +95,7 @@ public class JobUserController { ...@@ -95,7 +95,7 @@ public class JobUserController {
} }
xxlJobUser.setPassword(xxlJobUser.getPassword().trim()); xxlJobUser.setPassword(xxlJobUser.getPassword().trim());
if (!(xxlJobUser.getPassword().length()>=4 && xxlJobUser.getPassword().length()<=20)) { if (!(xxlJobUser.getPassword().length()>=4 && xxlJobUser.getPassword().length()<=20)) {
return Response.ofFail(I18nUtil.getString("system_lengh_limit")+"[4-20]" ); return Response.ofFail(I18nUtil.getString("system_length_limit")+"[4-20]" );
} }
// md5 password // md5 password
String passwordHash = Sha256Tool.sha256(xxlJobUser.getPassword()); String passwordHash = Sha256Tool.sha256(xxlJobUser.getPassword());
...@@ -127,7 +127,7 @@ public class JobUserController { ...@@ -127,7 +127,7 @@ public class JobUserController {
if (StringTool.isNotBlank(xxlJobUser.getPassword())) { if (StringTool.isNotBlank(xxlJobUser.getPassword())) {
xxlJobUser.setPassword(xxlJobUser.getPassword().trim()); xxlJobUser.setPassword(xxlJobUser.getPassword().trim());
if (!(xxlJobUser.getPassword().length()>=4 && xxlJobUser.getPassword().length()<=20)) { if (!(xxlJobUser.getPassword().length()>=4 && xxlJobUser.getPassword().length()<=20)) {
return Response.ofFail(I18nUtil.getString("system_lengh_limit")+"[4-20]" ); return Response.ofFail(I18nUtil.getString("system_length_limit")+"[4-20]" );
} }
// md5 password // md5 password
String passwordHash = Sha256Tool.sha256(xxlJobUser.getPassword()); String passwordHash = Sha256Tool.sha256(xxlJobUser.getPassword());
...@@ -176,7 +176,7 @@ public class JobUserController { ...@@ -176,7 +176,7 @@ public class JobUserController {
} }
password = password.trim(); password = password.trim();
if (!(password.length()>=4 && password.length()<=20)) { if (!(password.length()>=4 && password.length()<=20)) {
return Response.ofFail(I18nUtil.getString("system_lengh_limit")+"[4-20]" ); return Response.ofFail(I18nUtil.getString("system_length_limit")+"[4-20]" );
} }
// md5 password // md5 password
......
...@@ -31,7 +31,7 @@ system_unvalid=illegal ...@@ -31,7 +31,7 @@ system_unvalid=illegal
system_not_found=not exist system_not_found=not exist
system_nav=Navigation system_nav=Navigation
system_digits=digits system_digits=digits
system_lengh_limit=Length limit system_length_limit=Length limit
system_permission_limit=Permission limit system_permission_limit=Permission limit
system_welcome=Welcome system_welcome=Welcome
system_num_range=Numerical range limit system_num_range=Numerical range limit
......
...@@ -31,7 +31,7 @@ system_unvalid=非法 ...@@ -31,7 +31,7 @@ system_unvalid=非法
system_not_found=不存在 system_not_found=不存在
system_nav=导航 system_nav=导航
system_digits=整数 system_digits=整数
system_lengh_limit=长度限制 system_length_limit=长度限制
system_permission_limit=权限拦截 system_permission_limit=权限拦截
system_welcome=欢迎 system_welcome=欢迎
system_num_range=数值范围限制 system_num_range=数值范围限制
......
...@@ -31,7 +31,7 @@ system_unvalid=非法 ...@@ -31,7 +31,7 @@ system_unvalid=非法
system_not_found=不存在 system_not_found=不存在
system_nav=導航 system_nav=導航
system_digits=整數 system_digits=整數
system_lengh_limit=長度限制 system_length_limit=長度限制
system_permission_limit=權限控管 system_permission_limit=權限控管
system_welcome=歡迎 system_welcome=歡迎
system_num_range=數值範圍限制 system_num_range=數值範圍限制
......
...@@ -272,11 +272,11 @@ ...@@ -272,11 +272,11 @@
messages : { messages : {
username : { username : {
required : I18n.system_please_input + I18n.user_username, required : I18n.system_please_input + I18n.user_username,
rangelength: I18n.system_lengh_limit + "[4-20]" rangelength: I18n.system_length_limit + "[4-20]"
}, },
password : { password : {
required : I18n.system_please_input + I18n.user_password, required : I18n.system_please_input + I18n.user_password,
rangelength: I18n.system_lengh_limit + "[4-20]" rangelength: I18n.system_length_limit + "[4-20]"
} }
}, },
writeFormData: function() { writeFormData: function() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!