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) {