From aafadca94c5f207fd1ec0983851de7aec7849ec4 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 6 May 2024 15:24:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/pay/WeChatPayService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/common/service/pay/WeChatPayService.php b/app/common/service/pay/WeChatPayService.php index cffe63d..dee38ad 100644 --- a/app/common/service/pay/WeChatPayService.php +++ b/app/common/service/pay/WeChatPayService.php @@ -11,6 +11,7 @@ use app\common\model\recharge\RechargeOrder; use app\common\model\retail\Cashierclass; use app\common\model\user\UserAuth; use app\common\service\wechat\WeChatConfigService; +use app\Request; use EasyWeChat\Pay\Application; use EasyWeChat\Pay\Message; use support\Log; @@ -234,10 +235,11 @@ class WeChatPayService extends BasePayService */ public function notify() { + Log::error(json_encode(Request()->post())); + $server = $this->app->getServer(); // 支付通知 $server->handlePaid(function (Message $message) { - Log::error($message); if ($message['trade_state'] === 'SUCCESS') { $extra['transaction_id'] = $message['transaction_id']; $attach = $message['attach'];