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