Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
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
micro_app
gk
Commits
9c95265f
Commit
9c95265f
authored
Oct 17, 2025
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
清理无用日志
parent
92f20b9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
LogInterceptor.java
.../com/dlbridge/jadp/common/interceptor/LogInterceptor.java
+1
-1
SecurityInterceptor.java
...dlbridge/jadp/common/interceptor/SecurityInterceptor.java
+2
-2
No files found.
src/main/java/com/dlbridge/jadp/common/interceptor/LogInterceptor.java
View file @
9c95265f
...
...
@@ -33,7 +33,7 @@ public class LogInterceptor extends JService implements HandlerInterceptor {
@Override
public
boolean
preHandle
(
HttpServletRequest
request
,
HttpServletResponse
response
,
Object
handler
)
throws
Exception
{
//线程绑定变量(该数据只有当前请求的线程可见)
log
.
info
(
"URI:"
+
request
.
getRequestURI
()
+
",\n param:"
+
RequestParamHelper
.
createLinkString
(
RequestParamHelper
.
getRequestParamMap
(
request
)));
//
log.info("URI:" + request.getRequestURI() + ",\n param:" + RequestParamHelper.createLinkString(RequestParamHelper.getRequestParamMap(request)));
return
true
;
}
...
...
src/main/java/com/dlbridge/jadp/common/interceptor/SecurityInterceptor.java
View file @
9c95265f
...
...
@@ -55,7 +55,7 @@ public class SecurityInterceptor extends JService implements HandlerInterceptor
}
Map
<
String
,
Object
>
queryParams
=
getQueryParams
(
request
);
logger
.
info
(
"请求URL:"
+
request
.
getRequestURI
()+
queryParams
);
//
logger.info("请求URL:"+request.getRequestURI()+queryParams);
if
(
handler
instanceof
HandlerMethod
)
{
HandlerMethod
handlerMethod
=
(
HandlerMethod
)
handler
;
Method
method
=
handlerMethod
.
getMethod
();
...
...
@@ -81,7 +81,7 @@ public class SecurityInterceptor extends JService implements HandlerInterceptor
String
cId
=
request
.
getParameter
(
"cId"
);
String
uId
=
request
.
getParameter
(
"uId"
);
String
str
=
"cId="
+
cId
+
"×tamp="
+
timestamp
+
"&uId="
+
uId
;
log
.
info
(
"请求路径:"
+
str
+
",sign:"
+
DigestUtils
.
md5DigestAsHex
(
str
.
getBytes
())
+
",psign:"
+
sign
);
//
log.info("请求路径:" + str + ",sign:" + DigestUtils.md5DigestAsHex(str.getBytes()) + ",psign:" + sign);
if
(
NumberUtils
.
toInt
(
uId
,
-
1
)
==
-
1
||
NumberUtils
.
toInt
(
uId
,
-
1
)
==
0
)
{
log
.
info
(
"无用户信息登录"
);
response
.
sendRedirect
(
"http://timer.geexek.com"
);
...
...
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