记得上下班打卡 | 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
b173b9da
Commit
b173b9da
authored
Jun 29, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
e56a01e8
09cd9640
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
GlobalAuthorityInterceptor.java
...quidnet/common/web/filter/GlobalAuthorityInterceptor.java
+3
-0
No files found.
liquidnet-bus-common/liquidnet-common-web/src/main/java/com/liquidnet/common/web/filter/GlobalAuthorityInterceptor.java
View file @
b173b9da
...
@@ -74,8 +74,10 @@ public class GlobalAuthorityInterceptor extends HandlerInterceptorAdapter {
...
@@ -74,8 +74,10 @@ public class GlobalAuthorityInterceptor extends HandlerInterceptorAdapter {
}
catch
(
ExpiredJwtException
expiredJwtEx
)
{
}
catch
(
ExpiredJwtException
expiredJwtEx
)
{
responseCode
=
TOKEN_INVALID
;
responseCode
=
TOKEN_INVALID
;
log
.
error
(
"Ex.ExpiredJwtException:{},responseCode:{}"
,
expiredJwtEx
.
getMessage
(),
responseCode
);
}
catch
(
Exception
ex
)
{
}
catch
(
Exception
ex
)
{
responseCode
=
TOKEN_ILLEGAL
;
responseCode
=
TOKEN_ILLEGAL
;
log
.
error
(
"Ex.Exception:{},responseCode:{}"
,
ex
.
getMessage
(),
responseCode
);
}
}
}
else
{
}
else
{
responseCode
=
TOKEN_ILLEGAL
;
responseCode
=
TOKEN_ILLEGAL
;
...
@@ -88,6 +90,7 @@ public class GlobalAuthorityInterceptor extends HandlerInterceptorAdapter {
...
@@ -88,6 +90,7 @@ public class GlobalAuthorityInterceptor extends HandlerInterceptorAdapter {
}
}
if
(
StringUtils
.
isNotEmpty
(
responseCode
))
{
if
(
StringUtils
.
isNotEmpty
(
responseCode
))
{
this
.
responseHandler
(
response
,
responseCode
);
this
.
responseHandler
(
response
,
responseCode
);
log
.
warn
(
"Authority failed:{},uri:[{}],authorization:{}"
,
responseCode
,
uri
,
authorization
);
return
false
;
return
false
;
}
}
if
(
StringUtils
.
isEmpty
(
currentUid
))
{
if
(
StringUtils
.
isEmpty
(
currentUid
))
{
...
...
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