From 9e4d3bce1821658f9895f9e7cc84bfae8301ffba Mon Sep 17 00:00:00 2001 From: wxy <14293288+zysysys@user.noreply.gitee.com> Date: Sun, 25 Aug 2024 18:24:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(api):=20=E4=BF=AE=E6=AD=A3=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=85=85=E5=80=BC=E6=8E=A5=E5=8F=A3=E7=9A=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=8F=90=E4=BA=A4=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了用户充值接口`userRecharge`在提交数据时使用了错误的HTTP方法和URL。现在使用正确的POST方法和支付接口URL,以确保用户充值功能正常工作。 --- src/views/money/pay/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/money/pay/index.vue b/src/views/money/pay/index.vue index 8ff22aa..8233b38 100644 --- a/src/views/money/pay/index.vue +++ b/src/views/money/pay/index.vue @@ -42,7 +42,7 @@ export default { amountVal: '', disabled: false, // 同步跳转页面地址 - returnUrl:'http://localhost:8090/#/entertainment/payment', + returnUrl: 'http://172.13.1.1/money/money', //充值参数 rechargeParams: { "totalAmt": '', //金额 @@ -75,7 +75,7 @@ export default { } else if (this.rechargeParams.paymentType === '1') { let praem = { - // 生成一个随你的订单号 方便测试 + // 生成一个随的订单号 方便测试 outTradeNo: this.getProjectNum() + Math.floor(Math.random() * 10000), // 传递支付金额 totalAmount: this.rechargeParams.totalAmt,