|
|
@@ -324,7 +324,7 @@ public class OrderController {
|
|
|
@PostMapping("/post/pay/upgrade/zfb")
|
|
|
@Deprecated
|
|
|
public Result<String> aliPayUpgrade(@RequestBody @Validated AlipayOrderDonReq re) throws Exception {
|
|
|
- AliPayParams aliPayParams = orderDonService.aliPayUpgrade(re, ZfbProductCode.MOBILE_WEB.getProductCode());
|
|
|
+ AliPayParams aliPayParams = orderDonService.aliPayUpgrade(re, ZfbProductCode.MOBILE_WEB.getProductCode(),null);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(aliPayParams.getBody());
|
|
|
}
|
|
|
|
|
|
@@ -344,6 +344,21 @@ public class OrderController {
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(aliPayParams.getBody());
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 支付宝web支付
|
|
|
+ * pc网页内嵌二维码
|
|
|
+ */
|
|
|
+ @PostMapping("/get/zfb/upgrade/orderQrCode")
|
|
|
+ public Result<String> zfbWebQrCodeUpgrade(@RequestBody @Validated AlipayOrderDonReq re) throws Exception {
|
|
|
+ AliPayParams aliPayParams = orderDonService.aliPayUpgrade(re, ZfbProductCode.PC_WEB.getProductCode(), BaseZfbConfig.qrPayMode_orderCode);
|
|
|
+// response.setContentType("text/html;charset=" + BaseZfbConfig.charset);
|
|
|
+ //直接将完整的表单html输出到页面
|
|
|
+// response.getWriter().write(aliPayParams.getBody());
|
|
|
+// response.getWriter().flush();
|
|
|
+// response.getWriter().close();
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(aliPayParams.getBody());
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 支付宝web支付
|
|
|
* pc网页跳转二维码
|