Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
Project
Project
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
station
YeeAmosFireAutoSysRoot
Commits
e2672751
Commit
e2672751
authored
May 30, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备平台登陆失效问题
parent
207ad26f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
LoginController.java
...yeejoin/amos/fas/business/controller/LoginController.java
+8
-1
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/LoginController.java
View file @
e2672751
...
...
@@ -71,6 +71,9 @@ public class LoginController {
private
String
aProduct
=
"AMOS_STUDIO_WEB"
;
private
String
bProduct
=
"AMOS-WEB-ADMIN"
;
private
String
eProduct
=
"STUDIO_APP_WEB"
;
@ApiOperation
(
value
=
"通过userId登录"
,
notes
=
"查询设备指标"
)
...
...
@@ -92,7 +95,11 @@ public class LoginController {
RequestContext
.
setProduct
(
product
);
String
cacheKey
=
Redis
.
genKey
(
new
String
[]{
CacheType
.
ERASABLE
.
name
(),
"SESSION_TOKEN"
,
aProduct
,
reginParams
.
getToken
()});
boolean
hasKey
=
Redis
.
getRedisTemplate
().
hasKey
(
cacheKey
);
if
(
hasKey
)
{
String
cacheKey1
=
Redis
.
genKey
(
new
String
[]{
CacheType
.
ERASABLE
.
name
(),
"SESSION_TOKEN"
,
bProduct
,
reginParams
.
getToken
()});
boolean
hasKey1
=
Redis
.
getRedisTemplate
().
hasKey
(
cacheKey1
);
String
cacheKey4
=
Redis
.
genKey
(
new
String
[]{
CacheType
.
ERASABLE
.
name
(),
"SESSION_TOKEN"
,
eProduct
,
reginParams
.
getToken
()});
boolean
hasKey4
=
Redis
.
getRedisTemplate
().
hasKey
(
cacheKey4
);
if
(
hasKey
&&
hasKey1
&&
hasKey4
)
{
return
reginParams
;
}
else
{
logger
.
info
(
"Auto自动登陆=====:{}"
,
JSON
.
toJSONString
(
reginParams
));
...
...
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