Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lcj-btp-java-app
Project
Project
Details
Activity
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
郭智朋
lcj-btp-java-app
Commits
91e3a7cd
Commit
91e3a7cd
authored
Feb 18, 2025
by
guozhipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odata接口
parent
5dcf9a62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
OperateAuthFilter.java
...stomer/lianchuangjie/common/filter/OperateAuthFilter.java
+3
-3
No files found.
srv/src/main/java/customer/lianchuangjie/common/filter/OperateAuthFilter.java
View file @
91e3a7cd
...
@@ -112,10 +112,10 @@ public class OperateAuthFilter implements Filter {
...
@@ -112,10 +112,10 @@ public class OperateAuthFilter implements Filter {
}
}
}
}
}
}
//处理ODATA接口 只有odata接口需要从cookies中读取参数
//处理ODATA接口
OData接口仅允许本机访问
只有odata接口需要从cookies中读取参数
if
(
Pattern
.
matches
(
"(.*/odata/v4/.*)"
,
uri
))
{
if
(
Pattern
.
matches
(
"(.*/odata/v4/.*)"
,
uri
)
&&
!
"127.0.0.1"
.
equals
(
ip
)
&&
!
"0:0:0:0:0:0:0:1"
.
equals
(
ip
)
)
{
if
(
cookies
==
null
||
cookies
.
length
==
0
)
{
if
(
cookies
==
null
||
cookies
.
length
==
0
)
{
Result
<
Object
>
wrapResult
=
Result
.
error
(
"odata请求 cookies 不能为空!"
);
Result
<
Object
>
wrapResult
=
Result
.
error
(
"
requestIP="
+
ip
+
" requestURI="
+
uri
+
"
odata请求 cookies 不能为空!"
);
writeResult
(
response
,
wrapResult
);
writeResult
(
response
,
wrapResult
);
return
;
return
;
}
}
...
...
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