Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
b788df7d
Commit
b788df7d
authored
Jan 14, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:登录兼容
parent
ab7e5560
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
AuthRequestUtil.java
.../java/com/gic/haoban/manage/web/auth/AuthRequestUtil.java
+2
-4
LoginController.java
...com/gic/haoban/manage/web/controller/LoginController.java
+1
-2
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/auth/AuthRequestUtil.java
View file @
b788df7d
...
@@ -41,12 +41,11 @@ public class AuthRequestUtil {
...
@@ -41,12 +41,11 @@ public class AuthRequestUtil {
getSession
().
removeAttribute
(
LOGIN_SESSION_KEY
);
getSession
().
removeAttribute
(
LOGIN_SESSION_KEY
);
}
}
public
static
Object
getAppLoginUser
(
String
token
)
{
public
static
LoginDTO
getAppLoginUser
(
String
token
)
{
logger
.
info
(
"token-web="
+
token
);
logger
.
info
(
"token-web="
+
token
);
if
(
StringUtils
.
isBlank
(
token
))
{
if
(
StringUtils
.
isBlank
(
token
))
{
return
null
;
return
null
;
}
}
//为了做兼容
return
EntityUtil
.
changeEntityByJSON
(
LoginDTO
.
class
,
RedisUtil
.
getCache
(
token
));
return
EntityUtil
.
changeEntityByJSON
(
LoginDTO
.
class
,
RedisUtil
.
getCache
(
token
));
}
}
...
@@ -148,7 +147,6 @@ public class AuthRequestUtil {
...
@@ -148,7 +147,6 @@ public class AuthRequestUtil {
}
}
}
}
}
}
Object
appLoginUser
=
getAppLoginUser
(
token
);
return
getAppLoginUser
(
token
);
return
EntityUtil
.
changeEntityByJSON
(
LoginDTO
.
class
,
appLoginUser
);
}
}
}
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/LoginController.java
View file @
b788df7d
...
@@ -144,8 +144,7 @@ public class LoginController extends WebBaseController {
...
@@ -144,8 +144,7 @@ public class LoginController extends WebBaseController {
@RequestMapping
(
"get-login-info"
)
@RequestMapping
(
"get-login-info"
)
@Deprecated
@Deprecated
public
HaobanResponse
getLoginInfo
()
{
public
HaobanResponse
getLoginInfo
()
{
LoginDTO
loginVO
=
AuthRequestUtil
.
getLoginUser
();
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
AuthRequestUtil
.
getLoginUser
());
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
loginVO
);
}
}
@RequestMapping
(
"get-login-qrcode"
)
@RequestMapping
(
"get-login-qrcode"
)
...
...
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