Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
cca74a5c
Commit
cca74a5c
authored
Apr 18, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加工作人员最后登录时间
parent
1d5e3be2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
smart-gateway/src/main/java/com/mortals/xhx/base/framework/filter/AccessLogFilter.java
...om/mortals/xhx/base/framework/filter/AccessLogFilter.java
+8
-11
No files found.
smart-gateway/src/main/java/com/mortals/xhx/base/framework/filter/AccessLogFilter.java
View file @
cca74a5c
...
@@ -175,17 +175,14 @@ public class AccessLogFilter implements GlobalFilter, Ordered {
...
@@ -175,17 +175,14 @@ public class AccessLogFilter implements GlobalFilter, Ordered {
return
bodyInserter
.
insert
(
outputMessage
,
new
BodyInserterContext
())
return
bodyInserter
.
insert
(
outputMessage
,
new
BodyInserterContext
())
.
then
(
Mono
.
defer
(()
->
{
.
then
(
Mono
.
defer
(()
->
{
Flux
<
DataBuffer
>
dataBuffers
=
Flux
.
from
(
outputMessage
.
getBody
());
Flux
<
DataBuffer
>
dataBuffers
=
Flux
.
from
(
outputMessage
.
getBody
());
return
outputMessage
.
writeWith
(
dataBuffers
.
map
(
d
->
{
return
DataBufferUtils
.
join
(
dataBuffers
)
byte
[]
bytes
=
new
byte
[
d
.
readableByteCount
()];
.
doOnNext
(
buffer
->
{
d
.
read
(
bytes
);
outputMessage
.
bufferFactory
().
wrap
(
buffer
.
asByteBuffer
());
DataBufferUtils
.
release
(
d
);
})
return
bytes
;
.
doOnError
(
error
->
{
}).
map
(
bytes
->
{
// DataBufferUtils.release(dataBuffers);
DataBuffer
buffer
=
outputMessage
.
bufferFactory
().
wrap
(
bytes
);
})
return
buffer
;
.
flatMap
(
buffer
->
outputMessage
.
writeWith
(
Mono
.
just
(
buffer
)));
}).
doOnError
(
error
->
{
//DataBufferUtils.release(dataBuffers);
}));
}));
}));
// return bodyInserter.insert(outputMessage, new BodyInserterContext())
// return bodyInserter.insert(outputMessage, new BodyInserterContext())
...
...
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