Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
b8dd1610
Commit
b8dd1610
authored
Dec 12, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_guanjia' into dev
parents
f47de4ad
53b20ddb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
AuthController.java
...thub/wxiaoqi/security/auth/controller/AuthController.java
+8
-2
AppPermissionService.java
...aoqi/security/admin/rpc/service/AppPermissionService.java
+1
-0
No files found.
ace-auth/ace-auth-server/src/main/java/com/github/wxiaoqi/security/auth/controller/AuthController.java
View file @
b8dd1610
...
@@ -188,8 +188,14 @@ public class AuthController {
...
@@ -188,8 +188,14 @@ public class AuthController {
if
(
result
==
null
){
if
(
result
==
null
){
data
.
put
(
"status"
,
1001
);
data
.
put
(
"status"
,
1001
);
}
else
{
}
else
{
String
token
=
appAuthService
.
getToken
(
username
,
result
.
getInteger
(
"userId"
));
Integer
positionId
=
result
.
getInteger
(
"positionId"
)==
null
?
0
:
result
.
getInteger
(
"positionId"
);
data
.
put
(
"token"
,
token
);
if
(
positionId
==
4
||
positionId
==
1
||
positionId
==
2
||
positionId
==
3
){
String
token
=
appAuthService
.
getToken
(
username
,
result
.
getInteger
(
"userId"
));
data
.
put
(
"token"
,
token
);
}
else
{
data
.
put
(
"status"
,
ResultCode
.
FAILED_CODE
);
data
.
put
(
"message"
,
"登录失败"
);
}
}
}
}
}
return
data
;
return
data
;
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rpc/service/AppPermissionService.java
View file @
b8dd1610
...
@@ -444,6 +444,7 @@ public class AppPermissionService {
...
@@ -444,6 +444,7 @@ public class AppPermissionService {
data
.
put
(
"userId"
,
userid
);
data
.
put
(
"userId"
,
userid
);
data
.
put
(
"imUserId"
,
userVo
.
getImUserid
());
data
.
put
(
"imUserId"
,
userVo
.
getImUserid
());
data
.
put
(
"code"
,
userVo
.
getCode
());
data
.
put
(
"code"
,
userVo
.
getCode
());
data
.
put
(
"positionId"
,
userVo
.
getPositionId
());
//更新登录时间 和 ip
//更新登录时间 和 ip
String
clientIp
=
getIp
();
String
clientIp
=
getIp
();
appUserLoginBiz
.
updateLoginInfo
(
userid
,
clientIp
);
appUserLoginBiz
.
updateLoginInfo
(
userid
,
clientIp
);
...
...
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