fix(api): 修正用户充值接口的数据提交方式
修复了用户充值接口`userRecharge`在提交数据时使用了错误的HTTP方法和URL。现在使用正确的POST方法和支付接口URL,以确保用户充值功能正常工作。master
parent
fb04ce4cad
commit
9e4d3bce18
|
@ -42,7 +42,7 @@ export default {
|
||||||
amountVal: '',
|
amountVal: '',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
// 同步跳转页面地址
|
// 同步跳转页面地址
|
||||||
returnUrl:'http://localhost:8090/#/entertainment/payment',
|
returnUrl: 'http://172.13.1.1/money/money',
|
||||||
//充值参数
|
//充值参数
|
||||||
rechargeParams: {
|
rechargeParams: {
|
||||||
"totalAmt": '', //金额
|
"totalAmt": '', //金额
|
||||||
|
@ -75,7 +75,7 @@ export default {
|
||||||
|
|
||||||
} else if (this.rechargeParams.paymentType === '1') {
|
} else if (this.rechargeParams.paymentType === '1') {
|
||||||
let praem = {
|
let praem = {
|
||||||
// 生成一个随你的订单号 方便测试
|
// 生成一个随的订单号 方便测试
|
||||||
outTradeNo: this.getProjectNum() + Math.floor(Math.random() * 10000),
|
outTradeNo: this.getProjectNum() + Math.floor(Math.random() * 10000),
|
||||||
// 传递支付金额
|
// 传递支付金额
|
||||||
totalAmount: this.rechargeParams.totalAmt,
|
totalAmount: this.rechargeParams.totalAmt,
|
||||||
|
|
Loading…
Reference in New Issue