Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
V
volunteer_service
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
licc
volunteer_service
Commits
805089bc
Commit
805089bc
authored
Mar 23, 2021
by
cy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付
parent
cded8a06
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
AliPayServiceImpl.java
...java/cn/wisenergy/service/app/impl/AliPayServiceImpl.java
+3
-1
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/AliPayServiceImpl.java
View file @
805089bc
...
@@ -55,12 +55,14 @@ public class AliPayServiceImpl implements AliPayService {
...
@@ -55,12 +55,14 @@ public class AliPayServiceImpl implements AliPayService {
"\"total_amount\":"
+
payPageDto
.
getTotal
()
+
","
+
"\"total_amount\":"
+
payPageDto
.
getTotal
()
+
","
+
"\"subject\":\"充值\","
+
"\"subject\":\"充值\","
+
"\"body\":\"充值\","
+
"\"body\":\"充值\","
+
" }"
);
"\"product_code\":\"FAST_INSTANT_TRADE_PAY\""
+
"}"
);
String
form
=
""
;
String
form
=
""
;
//调用SDK生成表单
//调用SDK生成表单
try
{
try
{
AlipayTradePagePayResponse
response
=
alipayClient
.
pageExecute
(
alipayRequest
);
AlipayTradePagePayResponse
response
=
alipayClient
.
pageExecute
(
alipayRequest
);
form
=
response
.
getBody
();
form
=
response
.
getBody
();
System
.
out
.
println
(
form
);
httpResponse
.
setContentType
(
"text/html;charset=UTF-8"
);
httpResponse
.
setContentType
(
"text/html;charset=UTF-8"
);
//直接将完整的表单html输出到页面
//直接将完整的表单html输出到页面
httpResponse
.
getWriter
().
write
(
form
);
httpResponse
.
getWriter
().
write
(
form
);
...
...
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