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
d66eab98
Commit
d66eab98
authored
Apr 25, 2026
by
daniel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(interceptor): 拦截器修复
parent
e565b772
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
203 additions
and
8 deletions
+203
-8
SecurityInterceptor.java
...dlbridge/jadp/common/interceptor/SecurityInterceptor.java
+7
-7
markNoSelect.jsp
src/main/webapp/WEB-INF/views/cmpt/markNoSelect.jsp
+196
-1
No files found.
src/main/java/com/dlbridge/jadp/common/interceptor/SecurityInterceptor.java
View file @
d66eab98
...
...
@@ -61,13 +61,13 @@ public class SecurityInterceptor extends JService implements HandlerInterceptor
Method
method
=
handlerMethod
.
getMethod
();
PageView
annotation
=
method
.
getAnnotation
(
PageView
.
class
);
String
userAgent
=
request
.
getHeader
(
"user-agent"
).
toLowerCase
();
if
(
userAgent
.
indexOf
(
"miniprogram"
)>-
1
)
{
//小程序
String
partnerId
=
request
.
getParameter
(
"partnerId"
);
if
(
partnerId
==
null
){
throw
new
NoAuthException
(
"未查询到partnerdId,没权限!,uri: "
+
request
.
getRequestURI
());
}
}
//
String userAgent = request.getHeader("user-agent").toLowerCase();
//
if(userAgent.indexOf("miniprogram")>-1) {//小程序
//
String partnerId = request.getParameter("partnerId");
//
if(partnerId == null){
//
throw new NoAuthException("未查询到partnerdId,没权限!,uri: " + request.getRequestURI());
//
}
//
}
if
(
request
.
getRequestURI
().
indexOf
(
"easy"
)
>
-
1
&&
request
.
getSession
().
getAttribute
(
"user"
)
==
null
){
response
.
sendRedirect
(
domain
+
"login"
);
...
...
src/main/webapp/WEB-INF/views/cmpt/markNoSelect.jsp
View file @
d66eab98
This diff is collapsed.
Click to expand it.
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