Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-rest-admin-job-archetype
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c5e8ff01
authored
Apr 19, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]代码整理
1 parent
dfa07d39
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/job/GetTokenJob.java
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/job/GetTokenJob.java
View file @
c5e8ff0
...
@@ -46,10 +46,6 @@ public class GetTokenJob implements SimpleJob {
...
@@ -46,10 +46,6 @@ public class GetTokenJob implements SimpleJob {
@Override
@Override
public
void
execute
(
ShardingContext
shardingContext
)
{
public
void
execute
(
ShardingContext
shardingContext
)
{
AccessToken
accessToken
=
accessTokenRedis
.
readCache
(
Constants
.
ACCESSTOKEN_REDISKEY
);
AccessToken
accessToken
=
accessTokenRedis
.
readCache
(
Constants
.
ACCESSTOKEN_REDISKEY
);
accessToken
.
setExpire_time
(
1618826841475L
);
accessToken
.
setAccess_token
(
"461b85434f187bbe3fec4ecb7ba04155"
);
accessToken
.
setRefresh_token
(
"06f09434798fb224afa4391dff8a4b4d"
);
accessToken
.
setUid
(
"bay1607928539140q7gm"
);
log
.
info
(
"redis查询出{}"
,
accessToken
);
log
.
info
(
"redis查询出{}"
,
accessToken
);
if
(
null
!=
accessToken
)
{
if
(
null
!=
accessToken
)
{
if
((
System
.
currentTimeMillis
()-
accessToken
.
getExpire_time
())
>=
1000
*
60
*
60
*
2
)
{
if
((
System
.
currentTimeMillis
()-
accessToken
.
getExpire_time
())
>=
1000
*
60
*
60
*
2
)
{
...
...
Write
Preview
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