Commit 0bf171ca authored by renjie's avatar renjie

支付宝接口

parent 13c07269
......@@ -282,8 +282,8 @@ public class AccountController {
String by = request.getParameter("by");
AlipayReturnDto dto= paymentService.alipayPutPayOrder(request.getUserPrincipal().getName(), amount, by);
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)
......
......@@ -27,8 +27,7 @@ public class AlipayReturnDto {
@Override
public String toString() {
return "AlipayReturnDto{" +
"tradeNo='" + tradeNo + '\'' +
return "{tradeNo='" + tradeNo + '\'' +
", 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