From 5c2ecffd81cc37a7be1b491f9538c18f9da4fe2a Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Wed, 28 Dec 2022 01:03:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=9B=9E=20=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=AE=9D=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Web/BalanceController.php | 4 ++-- resources/views/balances/alipay.blade.php | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 resources/views/balances/alipay.blade.php diff --git a/app/Http/Controllers/Web/BalanceController.php b/app/Http/Controllers/Web/BalanceController.php index caff6ea..a4cd959 100644 --- a/app/Http/Controllers/Web/BalanceController.php +++ b/app/Http/Controllers/Web/BalanceController.php @@ -105,9 +105,9 @@ public function show(Request $request, Balance $balance) $order['subject'] = $subject; $order['total_amount'] = $balance->amount; - $pay = Pay::alipay()->scan($order); + $pay = Pay::alipay()->web($order); - $qr_code = $code->generate($pay->qr_code); + return view('balances.alipay', ['html' => (string)$pay->getBody()]); } if (!isset($qr_code)) { diff --git a/resources/views/balances/alipay.blade.php b/resources/views/balances/alipay.blade.php new file mode 100644 index 0000000..1cba784 --- /dev/null +++ b/resources/views/balances/alipay.blade.php @@ -0,0 +1,12 @@ + + + + + 继续 + + + +{!! $html !!} + + +