diff --git a/app/Command/MineCommand.php b/app/Command/MineCommand.php index 53a54c5..5f843d5 100644 --- a/app/Command/MineCommand.php +++ b/app/Command/MineCommand.php @@ -248,6 +248,7 @@ class MineCommand extends HyperfCommand 'data' => json_encode([ 'outOrderNo' => time().rand(1000, 9999), 'outMemberId' => 'T001', + 'amount' => 200, 'notifyUrl' => 'https://www.baidu.com', ]), ]; diff --git a/public/payment.html b/public/payment.html index 4760894..90a875a 100644 --- a/public/payment.html +++ b/public/payment.html @@ -205,7 +205,7 @@ this.form.cardNo = result.user.cardNo; this.form.mobile = result.user.mobile; this.form.bankCardNo = result.user.bankCardNo; - if (this.form.amount > 0) { + if (result.user.amount > 0) { this.form.amount = result.user.amount; this.amountReadonly = true; }