Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
baa-pay-server
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
贺超
baa-pay-server
Commits
aa3faa16
Commit
aa3faa16
authored
Sep 29, 2021
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建项目
parent
2dd1e9fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
PayTestController.java
...rc/main/java/cn/quant/baa/pay/rest/PayTestController.java
+5
-0
h5.html
baa-pay-server/src/main/resources/templates/pay/h5.html
+2
-2
No files found.
baa-pay-server/src/main/java/cn/quant/baa/pay/rest/PayTestController.java
View file @
aa3faa16
...
@@ -50,6 +50,11 @@ public class PayTestController extends BusinessController {
...
@@ -50,6 +50,11 @@ public class PayTestController extends BusinessController {
return
"pay/h5"
;
return
"pay/h5"
;
}
}
@RequestMapping
(
"ipv4"
)
public
String
ipv4
(
HttpServletRequest
request
)
{
return
"var CLIENT_IP=\""
+
getClientAddress
(
request
)
+
"\""
;
}
@RequestMapping
(
"checkPay"
)
@RequestMapping
(
"checkPay"
)
public
String
checkPay
(
CheckPayRequestData
data
,
Model
model
,
HttpServletRequest
servletRequest
)
throws
Exception
{
public
String
checkPay
(
CheckPayRequestData
data
,
Model
model
,
HttpServletRequest
servletRequest
)
throws
Exception
{
String
res
=
""
;
String
res
=
""
;
...
...
baa-pay-server/src/main/resources/templates/pay/h5.html
View file @
aa3faa16
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
>
<script
src=
"https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"
></script>
<script
src=
"https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"
></script>
<script
src=
"https://cdn.bootcdn.net/ajax/libs/jquery.serializeJSON/3.2.1/jquery.serializejson.min.js"
></script>
<script
src=
"https://cdn.bootcdn.net/ajax/libs/jquery.serializeJSON/3.2.1/jquery.serializejson.min.js"
></script>
<script
src=
"http
://pv.sohu.com/cityjson?ie=utf-8
"
></script>
<script
src=
"http
s://baa-pay-server-pay.liangkebang.net/pay/ipv4
"
></script>
<!-- <meta http-equiv="refresh" content="url=[[${payUrl}]]">-->
<!-- <meta http-equiv="refresh" content="url=[[${payUrl}]]">-->
<style>
<style>
*
{
*
{
...
@@ -271,7 +271,7 @@
...
@@ -271,7 +271,7 @@
document
.
getElementById
(
"
subject
"
).
value
=
"
测试
"
;
document
.
getElementById
(
"
subject
"
).
value
=
"
测试
"
;
document
.
getElementById
(
"
amount
"
).
value
=
"
0.01
"
;
document
.
getElementById
(
"
amount
"
).
value
=
"
0.01
"
;
document
.
getElementById
(
"
body
"
).
value
=
"
购买测试商品0.01元
"
;
document
.
getElementById
(
"
body
"
).
value
=
"
购买测试商品0.01元
"
;
document
.
getElementById
(
"
requestIp
"
).
value
=
returnCitySN
[
"
cip
"
]
;
document
.
getElementById
(
"
requestIp
"
).
value
=
CLIENT_IP
;
}
}
GetDateNow
();
GetDateNow
();
...
...
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