Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyang
sts网站
Commits
6f0c59d7
Commit
6f0c59d7
authored
Feb 08, 2022
by
Yancey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化默认值的问题,Model中不建议有默认值的逻辑。
parent
612c4293
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
LoginBody.java
...in/java/com/ruoyi/common/core/domain/model/LoginBody.java
+1
-1
SysRegisterService.java
...a/com/ruoyi/framework/web/service/SysRegisterService.java
+1
-1
No files found.
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginBody.java
View file @
6f0c59d7
...
@@ -25,7 +25,7 @@ public class LoginBody
...
@@ -25,7 +25,7 @@ public class LoginBody
/**
/**
* 唯一标识
* 唯一标识
*/
*/
private
String
uuid
=
""
;
private
String
uuid
;
public
String
getUsername
()
public
String
getUsername
()
{
{
...
...
ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysRegisterService.java
View file @
6f0c59d7
...
@@ -100,7 +100,7 @@ public class SysRegisterService
...
@@ -100,7 +100,7 @@ public class SysRegisterService
*/
*/
public
void
validateCaptcha
(
String
username
,
String
code
,
String
uuid
)
public
void
validateCaptcha
(
String
username
,
String
code
,
String
uuid
)
{
{
String
verifyKey
=
Constants
.
CAPTCHA_CODE_KEY
+
uuid
;
String
verifyKey
=
Constants
.
CAPTCHA_CODE_KEY
+
StringUtils
.
nvl
(
uuid
,
""
)
;
String
captcha
=
redisCache
.
getCacheObject
(
verifyKey
);
String
captcha
=
redisCache
.
getCacheObject
(
verifyKey
);
redisCache
.
deleteObject
(
verifyKey
);
redisCache
.
deleteObject
(
verifyKey
);
if
(
captcha
==
null
)
if
(
captcha
==
null
)
...
...
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