From e51684c991f21f98b4f2c0f072df841c69fec3a3 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Mon, 24 Jul 2023 14:37:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95app=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/pay/WeChatPayService.php | 3 ++- config/log.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/common/service/pay/WeChatPayService.php b/app/common/service/pay/WeChatPayService.php index 8db8da745..e695208cc 100755 --- a/app/common/service/pay/WeChatPayService.php +++ b/app/common/service/pay/WeChatPayService.php @@ -367,7 +367,8 @@ class WeChatPayService extends BasePayService $server = $this->app->getServer(); // 支付通知 $server->handlePaid(function (Message $message) { - Log::info('wechat pay notify', ['trade_state' => $message['trade_state'], 'out_trade_no' => $message['out_trade_no'], 'transaction_id' => $message['transaction_id'], 'attach' => $message['attach']]); + $data = ['trade_state' => $message['trade_state'] ?? '', 'out_trade_no' => $message['out_trade_no'] ?? '', 'transaction_id' => $message['transaction_id'] ?? '', 'attach' => $message['attach'] ?? '']; + Log::info('wechat pay notify: ' . var_export($data, true)); if ($message['trade_state'] === 'SUCCESS') { $extra['transaction_id'] = $message['transaction_id']; $attach = $message['attach']; diff --git a/config/log.php b/config/log.php index 66150989c..7446650c5 100755 --- a/config/log.php +++ b/config/log.php @@ -7,7 +7,7 @@ return [ // 默认日志记录通道 'default' => env('log.channel', 'file'), // 日志记录级别 - 'level' => ['info', 'error', 'sql'], + 'level' => ['info', 'error'], // 日志类型记录的通道 ['error'=>'email',...] 'type_channel' => [], // 关闭全局日志写入