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
32a41456
Commit
32a41456
authored
Oct 17, 2025
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决日志中的uId错误
parent
9c95265f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
SecurityInterceptor.java
...dlbridge/jadp/common/interceptor/SecurityInterceptor.java
+1
-1
PhotoController.java
...a/com/dlbridge/jadp/plugins/cmpt/web/PhotoController.java
+1
-1
No files found.
src/main/java/com/dlbridge/jadp/common/interceptor/SecurityInterceptor.java
View file @
32a41456
...
@@ -80,7 +80,6 @@ public class SecurityInterceptor extends JService implements HandlerInterceptor
...
@@ -80,7 +80,6 @@ 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
(
"无用户信息登录"
);
...
@@ -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 @
32a41456
...
@@ -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