|
|
@@ -273,9 +273,7 @@ public class OrderController {
|
|
|
@PostMapping("/post/pay/zfb")
|
|
|
@Deprecated
|
|
|
public Result<String> aliPay(@RequestBody @Validated AlipayOrderDonReq re) throws Exception {
|
|
|
- Long orderId = re.getOrderId();
|
|
|
- String returnUrl = re.getReturnUrl();
|
|
|
- AliPayParams aliPayParams = orderDonService.aliPay(orderId, returnUrl, ZfbProductCode.MOBILE_WEB.getProductCode(), null);
|
|
|
+ AliPayParams aliPayParams = orderDonService.aliPay(re, ZfbProductCode.MOBILE_WEB.getProductCode(), null);
|
|
|
// response.setContentType("text/html;charset=" + BaseZfbConfig.charset);
|
|
|
//直接将完整的表单html输出到页面
|
|
|
// response.getWriter().write(aliPayParams.getBody());
|
|
|
@@ -290,9 +288,7 @@ public class OrderController {
|
|
|
*/
|
|
|
@PostMapping("/get/zfb/orderQrCode")
|
|
|
public Result<String> zfbWebQrCode(@RequestBody @Validated AlipayOrderDonReq re) throws Exception {
|
|
|
- Long orderId = re.getOrderId();
|
|
|
- String returnUrl = re.getReturnUrl();
|
|
|
- AliPayParams aliPayParams = orderDonService.aliPay(orderId, returnUrl, ZfbProductCode.PC_WEB.getProductCode(), BaseZfbConfig.qrPayMode_orderCode);
|
|
|
+ AliPayParams aliPayParams = orderDonService.aliPay(re, ZfbProductCode.PC_WEB.getProductCode(), BaseZfbConfig.qrPayMode_orderCode);
|
|
|
// response.setContentType("text/html;charset=" + BaseZfbConfig.charset);
|
|
|
//直接将完整的表单html输出到页面
|
|
|
// response.getWriter().write(aliPayParams.getBody());
|
|
|
@@ -307,9 +303,7 @@ public class OrderController {
|
|
|
*/
|
|
|
@PostMapping("/get/zfb/orderRedirect")
|
|
|
public Result<String> zfbWebRedirectQrCode(@RequestBody @Validated AlipayOrderDonReq re) throws Exception {
|
|
|
- Long orderId = re.getOrderId();
|
|
|
- String returnUrl = re.getReturnUrl();
|
|
|
- AliPayParams aliPayParams = orderDonService.aliPay(orderId, returnUrl, ZfbProductCode.PC_WEB.getProductCode(), BaseZfbConfig.qrPayMode_redirect);
|
|
|
+ AliPayParams aliPayParams = orderDonService.aliPay(re, ZfbProductCode.PC_WEB.getProductCode(), BaseZfbConfig.qrPayMode_redirect);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(aliPayParams.getBody());
|
|
|
}
|
|
|
|