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
a3188496
Commit
a3188496
authored
Feb 25, 2021
by
罗承锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加解锁按钮
parent
e0e7d19c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
apply-net/src/main/java/com/winsun/controller/codeManagerController.java
+21
-0
No files found.
apply-net/src/main/java/com/winsun/controller/codeManagerController.java
View file @
a3188496
...
@@ -57,6 +57,27 @@ public class codeManagerController {
...
@@ -57,6 +57,27 @@ public class codeManagerController {
@Autowired
@Autowired
private
UniversityInfoMapper
universityInfoMapper
;
private
UniversityInfoMapper
universityInfoMapper
;
@Autowired
private
SysUserMapper
sysUserMapper
;
/**
* 解锁用户
* @param userId
* @return
*/
@ResponseBody
@RequestMapping
(
value
=
"unlock"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
String
>
unlock
(
String
userId
)
{
SysUser
sysUser
=
sysUserMapper
.
selectById
(
userId
);
if
(
sysUser
!=
null
)
{
redisTemplate
.
delete
(
"SYS_LOGIN_ERROR"
+
sysUser
.
getAccount
());
return
ResponseData
.
success
(
"成功"
);
}
else
{
return
ResponseData
.
success
(
"解锁失败"
);
}
}
@ResponseBody
@ResponseBody
@RequestMapping
(
value
=
"sendCodes"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"sendCodes"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
Map
<
String
,
Object
>>
checkStudent
(
String
phone
)
{
public
ResponseData
<
Map
<
String
,
Object
>>
checkStudent
(
String
phone
)
{
...
...
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