From 264921c45fa282ad9c5268755c11a128fb3c09a3 Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Thu, 6 Jun 2024 09:32:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=AD=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/PayController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/api/controller/PayController.php b/app/api/controller/PayController.php index 42c1df249..91dbf88df 100644 --- a/app/api/controller/PayController.php +++ b/app/api/controller/PayController.php @@ -28,8 +28,12 @@ class PayController extends BaseApiController { $app = new PayService(1); $result = $app->wechat->callback(Request()->post()); + Cache::set('log'.time(),json_encode($result)); + Cache::set('logE'.time(),$result->event_type); + Cache::set('logE1'.time(),$result['event_type']??''); if ($result && $result->event_type == 'TRANSACTION.SUCCESS') { $ciphertext = $result->resource['ciphertext']; + Cache::set('logc'.time(),$result->resource['ciphertext']); if ($ciphertext['trade_state'] === 'SUCCESS') { $attach = $ciphertext['attach']; switch ($attach) {