Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center
Commits
1057ceb4
Commit
1057ceb4
authored
Nov 29, 2021
by
伍思炜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
智能平台对接开发
parent
1924a25d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
core-service/src/main/java/com/winsun/item/modular/system/controller/LoginPwdController.java
+2
-1
No files found.
core-service/src/main/java/com/winsun/item/modular/system/controller/LoginPwdController.java
View file @
1057ceb4
...
...
@@ -354,6 +354,7 @@ public class LoginPwdController extends BaseController {
*/
@RequestMapping
(
value
=
"verificationCode"
,
method
=
RequestMethod
.
POST
)
public
Object
phoneLoginCode
(
@RequestParam
(
"username"
)
String
username
)
{
username
=
username
.
replaceAll
(
" "
,
""
);
EntityWrapper
<
User
>
userwrapper
=
new
EntityWrapper
<>();
userwrapper
.
eq
(
"account"
,
username
);
List
<
User
>
users
=
userService
.
selectList
(
userwrapper
);
...
...
@@ -374,7 +375,7 @@ public class LoginPwdController extends BaseController {
if
(
expire
>
(
60
*
4
))
{
return
ResponseEntity
.
newJSON
(
"code"
,
400
,
"message"
,
"请勿频繁发送手机验证码操作!"
);
}
stringRedisTemplate
.
opsForValue
().
set
(
code
,
verificationCode
,
CODETIME
,
TimeUnit
.
MILLI
SECONDS
);
stringRedisTemplate
.
opsForValue
().
set
(
code
,
verificationCode
,
1800
,
TimeUnit
.
SECONDS
);
Map
<
String
,
Object
>
sent
=
new
HashMap
<>();
sent
.
put
(
"code"
,
400
);
try
{
...
...
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