Commit 0bf171ca authored by renjie's avatar renjie

支付宝接口

parent 13c07269
...@@ -282,8 +282,8 @@ public class AccountController { ...@@ -282,8 +282,8 @@ public class AccountController {
String by = request.getParameter("by"); String by = request.getParameter("by");
AlipayReturnDto dto= paymentService.alipayPutPayOrder(request.getUserPrincipal().getName(), amount, by); AlipayReturnDto dto= paymentService.alipayPutPayOrder(request.getUserPrincipal().getName(), amount, by);
response.setContentType("text/html;charset=utf-8"); response.setContentType("text/html;charset=utf-8");
response.getWriter().println(dto); response.getWriter().println(dto.getForm());
response.getWriter().println(dto.getTradeNo());
} }
@RequestMapping(path = "/0xh5wxpayputorder/{amount}", method = RequestMethod.GET) @RequestMapping(path = "/0xh5wxpayputorder/{amount}", method = RequestMethod.GET)
......
...@@ -27,8 +27,7 @@ public class AlipayReturnDto { ...@@ -27,8 +27,7 @@ public class AlipayReturnDto {
@Override @Override
public String toString() { public String toString() {
return "AlipayReturnDto{" + return "{tradeNo='" + tradeNo + '\'' +
"tradeNo='" + tradeNo + '\'' +
", form='" + form + '\'' + ", form='" + form + '\'' +
'}'; '}';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment