|
|
@@ -215,6 +215,7 @@ public class OrderController {
|
|
|
/**
|
|
|
* 支付宝表单支付
|
|
|
* 支付宝调起支付宝表单
|
|
|
+ * 手机支付
|
|
|
*/
|
|
|
@PostMapping("/post/pay/zfb")
|
|
|
@Deprecated
|
|
|
@@ -238,7 +239,7 @@ public class OrderController {
|
|
|
public Result<String> zfbWebQrCode(@RequestBody @Validated AlipayOrderDonReq re) throws Exception {
|
|
|
Long orderId = re.getOrderId();
|
|
|
String returnUrl = re.getReturnUrl();
|
|
|
- AliPayParams aliPayParams = orderDonService.aliPay(orderId, returnUrl, BaseZfbConfig.TWO_STR, BaseZfbConfig.qrPayMode_orderCode);
|
|
|
+ AliPayParams aliPayParams = orderDonService.aliPay(orderId, returnUrl, ZfbProductCode.PC_WEB.getProductCode(), BaseZfbConfig.qrPayMode_orderCode);
|
|
|
// response.setContentType("text/html;charset=" + BaseZfbConfig.charset);
|
|
|
//直接将完整的表单html输出到页面
|
|
|
// response.getWriter().write(aliPayParams.getBody());
|
|
|
@@ -255,7 +256,7 @@ public class OrderController {
|
|
|
public Result<String> zfbWebRedirectQrCode(@RequestBody @Validated AlipayOrderDonReq re) throws Exception {
|
|
|
Long orderId = re.getOrderId();
|
|
|
String returnUrl = re.getReturnUrl();
|
|
|
- AliPayParams aliPayParams = orderDonService.aliPay(orderId, returnUrl, BaseZfbConfig.TWO_STR, BaseZfbConfig.qrPayMode_redirect);
|
|
|
+ AliPayParams aliPayParams = orderDonService.aliPay(orderId, returnUrl, ZfbProductCode.PC_WEB.getProductCode(), BaseZfbConfig.qrPayMode_redirect);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(aliPayParams.getBody());
|
|
|
}
|
|
|
|