From ce8571e313aa2de3f209b965cbfdfff077e76adf Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 18 Feb 2023 21:16:22 +0800 Subject: [PATCH] =?UTF-8?q?pay:=20=E6=8E=A5=E5=85=A5=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=AE=9D=20PC=20=E6=94=AF=E4=BB=98=E7=9A=84=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client/impl/alipay/AlipayPcPayClient.java | 4 -- yudao-ui-admin/src/utils/constants.js | 3 ++ yudao-ui-admin/src/views/pay/order/submit.vue | 53 +++++++++++-------- 3 files changed, 34 insertions(+), 26 deletions(-) diff --git a/yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayPcPayClient.java b/yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayPcPayClient.java index 4da7d78d0..176a67caa 100644 --- a/yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayPcPayClient.java +++ b/yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/alipay/AlipayPcPayClient.java @@ -69,10 +69,6 @@ public class AlipayPcPayClient extends AbstractAlipayClient { log.error("[unifiedOrder][request({}) 发起支付失败]", JsonUtils.toJsonString(reqDTO), e); return PayCommonResult.build(e.getErrCode(), e.getErrMsg(), null, codeMapping); } - // 1. form - // 2. url - // 3. code - // 4. code url // 2.2 处理结果 System.out.println(response.getBody()); diff --git a/yudao-ui-admin/src/utils/constants.js b/yudao-ui-admin/src/utils/constants.js index fee84a59a..0d9706874 100644 --- a/yudao-ui-admin/src/utils/constants.js +++ b/yudao-ui-admin/src/utils/constants.js @@ -160,6 +160,9 @@ export const PayDisplayModeEnum = { IFRAME: { "mode": "iframe", }, + FORM: { + "mode": "form" + } } /** diff --git a/yudao-ui-admin/src/views/pay/order/submit.vue b/yudao-ui-admin/src/views/pay/order/submit.vue index 7e8849ee1..8517ab925 100644 --- a/yudao-ui-admin/src/views/pay/order/submit.vue +++ b/yudao-ui-admin/src/views/pay/order/submit.vue @@ -41,20 +41,20 @@ - + - +