From 3ff3319f5507c681f3479aab78bf3a707bdfffc6 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 7 May 2024 09:49:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/PayController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/PayController.php b/app/api/controller/PayController.php index dc35889..1adce3d 100644 --- a/app/api/controller/PayController.php +++ b/app/api/controller/PayController.php @@ -39,7 +39,7 @@ class PayController extends BaseApiController Pay::config($config); $result = Pay::wechat()->callback(Request()->post()); if($result && $result->event_type=='TRANSACTION.SUCCESS'){ - $ciphertext=$result->resource->ciphertext; + $ciphertext=$result->resource['ciphertext']; if ($ciphertext['trade_state'] === 'SUCCESS') { $extra['transaction_id'] = $ciphertext['transaction_id']; $attach = $ciphertext['attach'];