Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
edefee46
Commit
edefee46
authored
Jul 13, 2022
by
稚屿
Committed by
Gitee
Jul 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除生成验证码多余的逻辑判断
parent
c7c3da20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
ruoyi-framework/src/main/java/com/ruoyi/framework/config/KaptchaTextCreator.java
...n/java/com/ruoyi/framework/config/KaptchaTextCreator.java
+1
-8
No files found.
ruoyi-framework/src/main/java/com/ruoyi/framework/config/KaptchaTextCreator.java
View file @
edefee46
...
@@ -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
Markdown
is supported
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