From 968054b9ff24b792a21dfae38c1eff77f531a32b Mon Sep 17 00:00:00 2001 From: liu <2302563948@qq.com> Date: Fri, 4 Sep 2026 23:05:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/OnlinePaymentService.php | 5 ++++- app/Services/WangpuPayService.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Services/OnlinePaymentService.php b/app/Services/OnlinePaymentService.php index b47dd5b..bf5a276 100644 --- a/app/Services/OnlinePaymentService.php +++ b/app/Services/OnlinePaymentService.php @@ -160,7 +160,10 @@ class OnlinePaymentService $payment->pay_params = $gatewayData; $payment->save(); - return [$payment, $payment->pay_params]; + $wxjsapistr = $gatewayData['wxjsapistr'] ?? '{}'; + $wxjsapiData = json_decode($wxjsapistr); + + return [$payment, $wxjsapiData]; } /** diff --git a/app/Services/WangpuPayService.php b/app/Services/WangpuPayService.php index 65be1ce..57d13f2 100644 --- a/app/Services/WangpuPayService.php +++ b/app/Services/WangpuPayService.php @@ -87,7 +87,7 @@ class WangpuPayService */ public function notifyUrl(): string { - return rtrim((string) config('app.url'), '/') . '/mini/payment/notify'; + return rtrim((string) config('app.url'), '/') . '/index.php/mini/payment/notify'; } /**