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
d07bc193
Commit
d07bc193
authored
Sep 24, 2019
by
zhangyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登陆修改
parent
fda6bb53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
UserController.java
src/com/ejweb/modules/user/api/UserController.java
+4
-2
No files found.
src/com/ejweb/modules/user/api/UserController.java
View file @
d07bc193
...
...
@@ -155,6 +155,7 @@ public class UserController {
LoginUserEntity
userEntity
=
userService
.
findUserByLoginName
(
loginBean
);
// 查询不到用户信息
if
(
userEntity
==
null
)
{
// 用户信息redis初始时间 增加value值
if
(
StringUtils
.
isEmpty
(
redisUsername
))
{
redisUtils
.
set
(
loginBean
.
getLoginName
(),
1
,
indexDb
);
redisUtils
.
expire
(
loginBean
.
getLoginName
(),
360
,
indexDb
);
...
...
@@ -203,6 +204,7 @@ public class UserController {
if
(
passwordError
)
{
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_4103
);
responseBean
.
setMessage
(
"账户或密码错误"
);
// 用户信息redis初始时间 增加value值
if
(
StringUtils
.
isEmpty
(
redisUsername
))
{
redisUtils
.
set
(
loginBean
.
getLoginName
(),
1
,
indexDb
);
redisUtils
.
expire
(
loginBean
.
getLoginName
(),
360
,
indexDb
);
...
...
@@ -738,7 +740,7 @@ public class UserController {
// deviceInfoEntity.setDeviceToken(loginBean.getDeviceToken());
// deviceInfoEntity.setPlatform(loginBean.getPlatform());
// deviceInfoEntity.setVersion(loginBean.getVersionName());
UserLoginLogEntity
deviceInfoEntity
=
new
UserLoginLogEntity
();
deviceInfoEntity
.
setUserId
(
userEntity
.
getId
());
deviceInfoEntity
.
setLoginDate
(
new
Date
());
...
...
@@ -950,7 +952,7 @@ public class UserController {
if
(
message
==
null
)
{
String
seatMobilePhone
=
""
;
//修改允许席位手机号为空,如果为空,则修改席位手机号为用户手机号
if
(
StringUtils
.
isEmpty
(
loginBean
.
getSeatMobile
()))
{
if
(
StringUtils
.
isEmpty
(
loginBean
.
getSeatMobile
()))
{
UserEntity
userEntity
=
new
UserEntity
();
userEntity
.
setUsercode
(
loginBean
.
getUserId
());
User
user
=
userService
.
getUserByUserCode
(
userEntity
);
...
...
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