From 4f0f91b61a1d3ec4b185719c586f01d40b722547 Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Thu, 6 Jun 2024 11:01:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=85=85=E5=80=BC=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= 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 91dbf88df..eebfb3214 100644 --- a/app/api/controller/PayController.php +++ b/app/api/controller/PayController.php @@ -33,7 +33,7 @@ class PayController extends BaseApiController 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']); + Cache::set('logc'.time(),json_decode($result->resource['ciphertext'],true)); if ($ciphertext['trade_state'] === 'SUCCESS') { $attach = $ciphertext['attach']; switch ($attach) {