Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
424d1189
"eladmin-common/vscode:/vscode.git/clone" did not exist on "5ece3a3d683717f287a3bfa998f10b856e2da014"
Unverified
Commit
424d1189
authored
Jul 14, 2022
by
若依
Committed by
Gitee
Jul 14, 2022
Browse files
!531 去除生成验证码多余的逻辑判断
Merge pull request !531 from 稚屿/N/A
parents
c7c3da20
edefee46
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-framework/src/main/java/com/ruoyi/framework/config/KaptchaTextCreator.java
View file @
424d1189
...
@@ -45,7 +45,7 @@ public class KaptchaTextCreator extends DefaultTextCreator
...
@@ -45,7 +45,7 @@ public class KaptchaTextCreator extends DefaultTextCreator
suChinese
.
append
(
CNUMBERS
[
y
]);
suChinese
.
append
(
CNUMBERS
[
y
]);
}
}
}
}
else
if
(
randomoperands
==
2
)
else
{
{
if
(
x
>=
y
)
if
(
x
>=
y
)
{
{
...
@@ -62,13 +62,6 @@ public class KaptchaTextCreator extends DefaultTextCreator
...
@@ -62,13 +62,6 @@ public class KaptchaTextCreator extends DefaultTextCreator
suChinese
.
append
(
CNUMBERS
[
x
]);
suChinese
.
append
(
CNUMBERS
[
x
]);
}
}
}
}
else
{
result
=
x
+
y
;
suChinese
.
append
(
CNUMBERS
[
x
]);
suChinese
.
append
(
"+"
);
suChinese
.
append
(
CNUMBERS
[
y
]);
}
suChinese
.
append
(
"=?@"
+
result
);
suChinese
.
append
(
"=?@"
+
result
);
return
suChinese
.
toString
();
return
suChinese
.
toString
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment