Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
log-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
赵啸非
log-platform
Commits
eacac40e
Commit
eacac40e
authored
Jan 15, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改vue为内网环境
parent
00478066
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
14 deletions
+3
-14
log-manager/src/main/java/com/mortals/xhx/base/framework/listener/AccessMessageConsumerListener.java
...ase/framework/listener/AccessMessageConsumerListener.java
+3
-4
log-manager/src/main/java/com/mortals/xhx/module/access/web/AccessLogController.java
...om/mortals/xhx/module/access/web/AccessLogController.java
+0
-9
log-manager/src/main/java/com/mortals/xhx/module/biz/web/BizLogController.java
...java/com/mortals/xhx/module/biz/web/BizLogController.java
+0
-1
No files found.
log-manager/src/main/java/com/mortals/xhx/base/framework/listener/AccessMessageConsumerListener.java
View file @
eacac40e
...
@@ -81,17 +81,16 @@ public class AccessMessageConsumerListener {
...
@@ -81,17 +81,16 @@ public class AccessMessageConsumerListener {
entity
.
setCreateUserId
(
1L
);
entity
.
setCreateUserId
(
1L
);
entity
.
setCreateTime
(
new
Date
());
entity
.
setCreateTime
(
new
Date
());
//判断 超过一定时间的请求 才记录
//判断 超过一定时间的请求 才记录
/*
if (!ObjectUtils.isEmpty(entity.getDuration()) && entity.getDuration() < Constant.ACCESS_EXPIRE_TIME) {
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getDuration
())
&&
entity
.
getDuration
()
<
Constant
.
ACCESS_EXPIRE_TIME
)
{
//
log.info("Duration:{}",entity.getDuration());
log
.
info
(
"Duration:{}"
,
entity
.
getDuration
());
return
null
;
return
null
;
}
}
Thread.sleep(10);
*/
Thread
.
sleep
(
10
);
return
entity
;
return
entity
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
info
(
"反序列化异常"
,
e
);
log
.
info
(
"反序列化异常"
,
e
);
return
null
;
return
null
;
}
}
}).
filter
(
f
->
f
!=
null
).
collect
(
Collectors
.
toList
());
}).
filter
(
f
->
f
!=
null
).
collect
(
Collectors
.
toList
());
log
.
info
(
"[Access onMessage][消息数量:{}]"
,
collect
.
size
());
log
.
info
(
"[Access onMessage][消息数量:{}]"
,
collect
.
size
());
accessLogService
.
save
(
collect
);
accessLogService
.
save
(
collect
);
...
...
log-manager/src/main/java/com/mortals/xhx/module/access/web/AccessLogController.java
View file @
eacac40e
...
@@ -72,15 +72,6 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces
...
@@ -72,15 +72,6 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces
@Override
@Override
@UnAuth
@UnAuth
public
String
save
(
@RequestBody
AccessLogEntity
entity
)
{
public
String
save
(
@RequestBody
AccessLogEntity
entity
)
{
/* AccessLogPdu accessLogPdu = new AccessLogPdu();
accessLogPdu.initAttrValue();
BeanUtils.copyProperties(entity, accessLogPdu, BeanUtil.getNullPropertyNames(entity));
messageProducer.syncAccessSend(accessLogPdu);
JSONObject ret = new JSONObject();
ret.put("code", VALUE_RESULT_SUCCESS);
return ret.toJSONString();*/
return
super
.
save
(
entity
);
return
super
.
save
(
entity
);
}
}
...
...
log-manager/src/main/java/com/mortals/xhx/module/biz/web/BizLogController.java
View file @
eacac40e
...
@@ -81,7 +81,6 @@ public class BizLogController extends BaseCRUDJsonBodyMappingController<BizLogSe
...
@@ -81,7 +81,6 @@ public class BizLogController extends BaseCRUDJsonBodyMappingController<BizLogSe
JSONObject ret = new JSONObject();
JSONObject ret = new JSONObject();
ret.put("code", VALUE_RESULT_SUCCESS);
ret.put("code", VALUE_RESULT_SUCCESS);
return ret.toJSONString();*/
return ret.toJSONString();*/
return
super
.
save
(
entity
);
return
super
.
save
(
entity
);
}
}
...
...
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