Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
tool
/
xxl-job
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 69a19e1f
authored
Apr 05, 2026
by
xuxueli
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
I18N国际化完善、参数名重构,合并PR-2888、PR-3006;
1 parent
7cb368e6
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
11 deletions
doc/XXL-JOB官方文档.md
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/base/LoginController.java
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/biz/JobUserController.java
xxl-job-admin/src/main/resources/i18n/message_en.properties
xxl-job-admin/src/main/resources/i18n/message_zh_CN.properties
xxl-job-admin/src/main/resources/i18n/message_zh_TC.properties
xxl-job-admin/src/main/resources/templates/biz/user.list.ftl
doc/XXL-JOB官方文档.md
View file @
69a19e1
...
@@ -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、【优化】一致性哈希路由算法优化,重构哈希环逻辑提升代码简洁性;
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/base/LoginController.java
View file @
69a19e1
...
@@ -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_leng
t
h_limit"
)+
"[4-20]"
);
}
}
// md5 password
// md5 password
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/biz/JobUserController.java
View file @
69a19e1
...
@@ -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_leng
t
h_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_leng
t
h_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_leng
t
h_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_leng
t
h_limit")+"[4-20]" );
}
}
// md5 password
// md5 password
...
...
xxl-job-admin/src/main/resources/i18n/message_en.properties
View file @
69a19e1
...
@@ -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_leng
t
h_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
...
...
xxl-job-admin/src/main/resources/i18n/message_zh_CN.properties
View file @
69a19e1
...
@@ -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_leng
t
h_limit
=
长度限制
system_permission_limit
=
权限拦截
system_permission_limit
=
权限拦截
system_welcome
=
欢迎
system_welcome
=
欢迎
system_num_range
=
数值范围限制
system_num_range
=
数值范围限制
...
...
xxl-job-admin/src/main/resources/i18n/message_zh_TC.properties
View file @
69a19e1
...
@@ -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_leng
t
h_limit
=
長度限制
system_permission_limit
=
權限控管
system_permission_limit
=
權限控管
system_welcome
=
歡迎
system_welcome
=
歡迎
system_num_range
=
數值範圍限制
system_num_range
=
數值範圍限制
...
...
xxl-job-admin/src/main/resources/templates/biz/user.list.ftl
View file @
69a19e1
...
@@ -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_leng
t
h_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_leng
t
h_limit
+
"[4-20]"
}
}
},
},
writeFormData
:
function
()
{
writeFormData
:
function
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment