记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
f66cd0c3
Commit
f66cd0c3
authored
Nov 08, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~opt:log.level;
parent
f48535e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
GlobalAuthorityInterceptor.java
...quidnet/common/web/filter/GlobalAuthorityInterceptor.java
+4
-4
No files found.
liquidnet-bus-common/liquidnet-common-web/src/main/java/com/liquidnet/common/web/filter/GlobalAuthorityInterceptor.java
View file @
f66cd0c3
...
...
@@ -85,9 +85,9 @@ public class GlobalAuthorityInterceptor extends HandlerInterceptorAdapter {
request
.
setAttribute
(
CurrentUtil
.
uTag
,
JsonUtils
.
toJson
(
claims
));
}
catch
(
ExpiredJwtException
expiredJwtEx
)
{
log
.
error
(
"Ex.ExpiredJwtException:{},responseCode:{}"
,
expiredJwtEx
.
getMessage
(),
responseCode
=
TOKEN_INVALID
);
log
.
warn
(
"Ex.ExpiredJwtException:{},responseCode:{}"
,
expiredJwtEx
.
getMessage
(),
responseCode
=
TOKEN_INVALID
);
}
catch
(
Exception
ex
)
{
log
.
error
(
"Ex.Exception:{},responseCode:{}"
,
ex
.
getMessage
(),
responseCode
=
TOKEN_ILLEGAL
);
log
.
warn
(
"Ex.Exception:{},responseCode:{}"
,
ex
.
getMessage
(),
responseCode
=
TOKEN_ILLEGAL
);
}
}
else
{
responseCode
=
TOKEN_ILLEGAL
;
...
...
@@ -276,7 +276,7 @@ public class GlobalAuthorityInterceptor extends HandlerInterceptorAdapter {
// log.info("#ATH.ENCRYPT耗时:{}ms", System.currentTimeMillis() - s);
// s = System.currentTimeMillis();
ResponseDto
<
String
>
check
=
feignAuthorityClient
.
check
(
encrypt
);
log
.
info
(
"#ATH.VALID耗时:{}ms"
,
System
.
currentTimeMillis
()
-
s
);
log
.
debug
(
"#ATH.VALID耗时:{}ms"
,
System
.
currentTimeMillis
()
-
s
);
if
(
check
.
isSuccess
())
{
String
valEncrypt
=
check
.
getData
();
...
...
@@ -287,7 +287,7 @@ public class GlobalAuthorityInterceptor extends HandlerInterceptorAdapter {
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"GLOBAL:Authority Check Exception"
,
e
);
log
.
warn
(
"Ex.Authority Check Exception[ssokey={}]"
,
ssokey
,
e
);
}
return
val
;
}
...
...
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