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
bb076059
Commit
bb076059
authored
Oct 17, 2025
by
daniel
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
1adc68f8
32a41456
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
LogInterceptor.java
.../com/dlbridge/jadp/common/interceptor/LogInterceptor.java
+1
-1
SecurityInterceptor.java
...dlbridge/jadp/common/interceptor/SecurityInterceptor.java
+3
-3
PhotoController.java
...a/com/dlbridge/jadp/plugins/cmpt/web/PhotoController.java
+1
-1
No files found.
src/main/java/com/dlbridge/jadp/common/interceptor/LogInterceptor.java
View file @
bb076059
...
@@ -33,7 +33,7 @@ public class LogInterceptor extends JService implements HandlerInterceptor {
...
@@ -33,7 +33,7 @@ public class LogInterceptor extends JService implements HandlerInterceptor {
@Override
@Override
public
boolean
preHandle
(
HttpServletRequest
request
,
HttpServletResponse
response
,
public
boolean
preHandle
(
HttpServletRequest
request
,
HttpServletResponse
response
,
Object
handler
)
throws
Exception
{
//线程绑定变量(该数据只有当前请求的线程可见)
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
;
return
true
;
}
}
...
...
src/main/java/com/dlbridge/jadp/common/interceptor/SecurityInterceptor.java
View file @
bb076059
...
@@ -55,7 +55,7 @@ public class SecurityInterceptor extends JService implements HandlerInterceptor
...
@@ -55,7 +55,7 @@ public class SecurityInterceptor extends JService implements HandlerInterceptor
}
}
Map
<
String
,
Object
>
queryParams
=
getQueryParams
(
request
);
Map
<
String
,
Object
>
queryParams
=
getQueryParams
(
request
);
logger
.
info
(
"请求URL:"
+
request
.
getRequestURI
()+
queryParams
);
//
logger.info("请求URL:"+request.getRequestURI()+queryParams);
if
(
handler
instanceof
HandlerMethod
)
{
if
(
handler
instanceof
HandlerMethod
)
{
HandlerMethod
handlerMethod
=
(
HandlerMethod
)
handler
;
HandlerMethod
handlerMethod
=
(
HandlerMethod
)
handler
;
Method
method
=
handlerMethod
.
getMethod
();
Method
method
=
handlerMethod
.
getMethod
();
...
@@ -80,8 +80,7 @@ public class SecurityInterceptor extends JService implements HandlerInterceptor
...
@@ -80,8 +80,7 @@ public class SecurityInterceptor extends JService implements HandlerInterceptor
String
sign
=
request
.
getParameter
(
"sign"
);
String
sign
=
request
.
getParameter
(
"sign"
);
String
cId
=
request
.
getParameter
(
"cId"
);
String
cId
=
request
.
getParameter
(
"cId"
);
String
uId
=
request
.
getParameter
(
"uId"
);
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
)
{
if
(
NumberUtils
.
toInt
(
uId
,
-
1
)
==
-
1
||
NumberUtils
.
toInt
(
uId
,
-
1
)
==
0
)
{
log
.
info
(
"无用户信息登录"
);
log
.
info
(
"无用户信息登录"
);
response
.
sendRedirect
(
"http://timer.geexek.com"
);
response
.
sendRedirect
(
"http://timer.geexek.com"
);
...
@@ -91,6 +90,7 @@ public class SecurityInterceptor extends JService implements HandlerInterceptor
...
@@ -91,6 +90,7 @@ public class SecurityInterceptor extends JService implements HandlerInterceptor
log
.
info
(
"无权限!"
);
log
.
info
(
"无权限!"
);
throw
new
RuntimeException
(
"无权限"
);
throw
new
RuntimeException
(
"无权限"
);
}
}
String
str
=
"cId="
+
cId
+
"×tamp="
+
timestamp
+
"&uId="
+
uId
;
if
(!
DigestUtils
.
md5DigestAsHex
(
str
.
getBytes
()).
equals
(
sign
))
{
if
(!
DigestUtils
.
md5DigestAsHex
(
str
.
getBytes
()).
equals
(
sign
))
{
log
.
info
(
"签名不一致!"
);
log
.
info
(
"签名不一致!"
);
throw
new
RuntimeException
(
"签名不一致!"
);
throw
new
RuntimeException
(
"签名不一致!"
);
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/PhotoController.java
View file @
bb076059
...
@@ -31,7 +31,7 @@ public class PhotoController {
...
@@ -31,7 +31,7 @@ public class PhotoController {
@RequestMapping
(
"index/{cmptId}"
)
@RequestMapping
(
"index/{cmptId}"
)
@PageView
@PageView
public
ModelAndView
index
(
@PathVariable
(
"cmptId"
)
Integer
cmptId
,
public
ModelAndView
index
(
@PathVariable
(
"cmptId"
)
Integer
cmptId
,
@RequestParam
(
"uId
"
)
Integer
userId
,
@RequestParam
(
value
=
"uId"
,
required
=
false
,
defaultValue
=
"-1
"
)
Integer
userId
,
ModelAndView
mv
)
{
ModelAndView
mv
)
{
Cmpt
cmpt
=
cmptService
.
queryCmptBycmptId
(
cmptId
);
Cmpt
cmpt
=
cmptService
.
queryCmptBycmptId
(
cmptId
);
int
nueuserId
=
cmptService
.
getCommonNeuUserId
(
userId
);
int
nueuserId
=
cmptService
.
getCommonNeuUserId
(
userId
);
...
...
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