Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
youka-api
Overview
Overview
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
java-youka-wallet
youka-api
Commits
fc34a69a
Commit
fc34a69a
authored
Jun 07, 2018
by
tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过滤器修改
parent
d8372697
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
ValidationFilter.java
src/main/java/com/thinkgem/jeesite/common/filter/ValidationFilter.java
+8
-4
No files found.
src/main/java/com/thinkgem/jeesite/common/filter/ValidationFilter.java
View file @
fc34a69a
...
...
@@ -9,6 +9,8 @@ import javax.servlet.annotation.WebFilter;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* 验证sign
...
...
@@ -28,10 +30,12 @@ public class ValidationFilter implements Filter {
if
(
url
==
null
||
url
.
trim
().
length
()
==
0
)
{
return
;
}
System
.
out
.
println
(
"url:"
+
url
);
if
(!
url
.
startsWith
(
"http://localhost:8080/youka-api/api/pay/openCardCallback"
)||
!
url
.
startsWith
(
"http://localhost:8080/youka-api/api/pay/notifyQuickPay"
)||
!
url
.
startsWith
(
"http://localhost:8080/youka-api/api/pay/notifyPay"
)){
String
urls
=
url
.
substring
(
url
.
lastIndexOf
(
"/"
)+
1
);
List
<
String
>
list
=
new
ArrayList
<>();
list
.
add
(
"openCardCallback"
);
list
.
add
(
"notifyQuickPay"
);
list
.
add
(
"notifyPay"
);
if
(!
list
.
contains
(
urls
)){
System
.
out
.
println
(
"进入了"
);
String
signCode
=
ComCode
.
signCode
;
String
subMerchantCode
=
httpRequest
.
getParameter
(
"subMerchantCode"
);
...
...
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