Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
8c69aa89
Commit
8c69aa89
authored
Jun 01, 2018
by
xiaoguang.xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style : 修正日志打印, no error
parent
efd41d96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
UserController.java
...ntgroup/xyqb/controller/internal/user/UserController.java
+1
-1
LockIpv4ServiceImpl.java
...uantgroup/xyqb/service/user/impl/LockIpv4ServiceImpl.java
+1
-1
No files found.
src/main/java/cn/quantgroup/xyqb/controller/internal/user/UserController.java
View file @
8c69aa89
...
...
@@ -183,7 +183,7 @@ public class UserController implements IBaseController {
verifyPhoneAndCode
(
phoneNo
,
verificationCode
);
User
user
=
userService
.
findByPhoneWithCache
(
phoneNo
);
if
(
user
!=
null
&&
!
user
.
getEnable
())
{
log
.
error
(
"用户不存在,或者已经注销,phoneNo:{}"
,
phoneNo
);
log
.
info
(
"用户不存在,或者已经注销,phoneNo:{}"
,
phoneNo
);
return
JsonResult
.
buildErrorStateResult
(
"登录失败"
,
null
);
}
if
(
user
==
null
)
{
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/LockIpv4ServiceImpl.java
View file @
8c69aa89
...
...
@@ -64,7 +64,7 @@ public class LockIpv4ServiceImpl implements ILockIpv4Service {
stringRedisTemplate
.
opsForValue
().
set
(
ipv4Key
,
String
.
valueOf
(
0
),
Constants
.
IPV4_FAILED_COUNT_MINUTES
,
TimeUnit
.
MINUTES
);
}
Long
count
=
stringRedisTemplate
.
opsForValue
().
increment
(
ipv4Key
,
1L
);
LOGGER
.
info
(
"Lock_ipv4: count
error
ip access: ip={}, count={}"
,
ipv4
,
count
);
LOGGER
.
info
(
"Lock_ipv4: count
deny
ip access: ip={}, count={}"
,
ipv4
,
count
);
lockErrorIpv4
(
ipv4
,
count
);
}
}
...
...
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