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
c4160606
Commit
c4160606
authored
May 20, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备平台登陆失效问题
parent
448618ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
LoginController.java
...yeejoin/amos/fas/business/controller/LoginController.java
+16
-1
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/LoginController.java
View file @
c4160606
...
...
@@ -70,6 +70,11 @@ public class LoginController {
private
String
appKey
;
private
String
aProduct
=
"AMOS_STUDIO_WEB"
;
private
String
bProduct
=
"AMOS-WEB-ADMIN"
;
private
String
cProduct
=
"STUDIO_APP_3D"
;
private
String
dProduct
=
"STUDIO_APP_MOBILE"
;
private
String
eProduct
=
"STUDIO_APP_WEB"
;
private
String
fProduct
=
"YHPATROL_WEB"
;
...
...
@@ -92,7 +97,17 @@ 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
cacheKey2
=
Redis
.
genKey
(
new
String
[]{
CacheType
.
ERASABLE
.
name
(),
"SESSION_TOKEN"
,
cProduct
,
reginParams
.
getToken
()});
boolean
hasKey2
=
Redis
.
getRedisTemplate
().
hasKey
(
cacheKey2
);
String
cacheKey3
=
Redis
.
genKey
(
new
String
[]{
CacheType
.
ERASABLE
.
name
(),
"SESSION_TOKEN"
,
dProduct
,
reginParams
.
getToken
()});
boolean
hasKey3
=
Redis
.
getRedisTemplate
().
hasKey
(
cacheKey3
);
String
cacheKey4
=
Redis
.
genKey
(
new
String
[]{
CacheType
.
ERASABLE
.
name
(),
"SESSION_TOKEN"
,
eProduct
,
reginParams
.
getToken
()});
boolean
hasKey4
=
Redis
.
getRedisTemplate
().
hasKey
(
cacheKey4
);
String
cacheKey5
=
Redis
.
genKey
(
new
String
[]{
CacheType
.
ERASABLE
.
name
(),
"SESSION_TOKEN"
,
fProduct
,
reginParams
.
getToken
()});
boolean
hasKey5
=
Redis
.
getRedisTemplate
().
hasKey
(
cacheKey5
);
if
(
hasKey
&&
hasKey1
&&
hasKey2
&&
hasKey3
&&
hasKey4
&&
hasKey5
)
{
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