Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
api
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
首航-临时账号
api
Commits
fda6bb53
Commit
fda6bb53
authored
Sep 24, 2019
by
zt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
b8e6774e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
UserController.java
src/com/ejweb/modules/user/api/UserController.java
+0
-3
No files found.
src/com/ejweb/modules/user/api/UserController.java
View file @
fda6bb53
...
...
@@ -155,7 +155,6 @@ public class UserController {
LoginUserEntity
userEntity
=
userService
.
findUserByLoginName
(
loginBean
);
// 查询不到用户信息
if
(
userEntity
==
null
)
{
//todo ip username +1
if
(
StringUtils
.
isEmpty
(
redisUsername
))
{
redisUtils
.
set
(
loginBean
.
getLoginName
(),
1
,
indexDb
);
redisUtils
.
expire
(
loginBean
.
getLoginName
(),
360
,
indexDb
);
...
...
@@ -204,7 +203,6 @@ public class UserController {
if
(
passwordError
)
{
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_4103
);
responseBean
.
setMessage
(
"账户或密码错误"
);
//todo ip username +1
if
(
StringUtils
.
isEmpty
(
redisUsername
))
{
redisUtils
.
set
(
loginBean
.
getLoginName
(),
1
,
indexDb
);
redisUtils
.
expire
(
loginBean
.
getLoginName
(),
360
,
indexDb
);
...
...
@@ -247,7 +245,6 @@ public class UserController {
mobileVerifyService
.
updateVerifyCodeStatus
(
loginBean
.
getLoginName
(),
loginBean
.
getVerifyCode
(),
1
);
}
String
clientip
=
StringUtils
.
isEmpty
(
loginBean
.
getClientip
())
?
Util
.
getOnlineIP
(
request
)
:
loginBean
.
getClientip
();
//todo ip username 删除
redisUtils
.
del
(
loginBean
.
getLoginName
(),
indexDb
);
redisUtils
.
del
(
userIp
,
indexDb
);
UserLoginLogEntity
deviceInfoEntity
=
new
UserLoginLogEntity
();
...
...
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