Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
legobackend
/
lego-manage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e81a4e58
authored
2025-08-16 22:05:08 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
51e3a1ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
lego-framework/src/main/java/com/lego/framework/config/SaTokenConfig.java
lego-framework/src/main/java/com/lego/framework/config/SaTokenConfig.java
View file @
e81a4e5
...
...
@@ -59,13 +59,13 @@ public class SaTokenConfig implements WebMvcConfigurer {
// 检查是否登录 是否有token
SaRequest
request
=
SaHolder
.
getRequest
();
String
token
=
request
.
getHeader
(
"token"
);
System
.
out
.
println
(
"token:"
+
token
);
log
.
info
(
"token:"
+
token
);
if
(
StringUtils
.
isNotBlank
(
token
))
{
String
timestamp
=
EncryptUtils
.
decryptByAes
(
token
);
System
.
out
.
println
(
"timestamp:"
+
timestamp
);
log
.
info
(
"timestamp:"
+
timestamp
);
long
time
=
System
.
currentTimeMillis
();
long
period
=
time
-
Long
.
valueOf
(
timestamp
);
System
.
out
.
println
(
"period:"
+
period
);
log
.
info
(
"period:"
+
period
);
if
(
period
<=
60000
&&
period
>=
0
){
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment