From f55f0c137e576b41e305d9cccca67c91601ae298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Tue, 4 Mar 2025 00:13:52 +0800 Subject: [PATCH] Update PaymentService.php --- plugin/think-plugs-wechat/src/service/PaymentService.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/think-plugs-wechat/src/service/PaymentService.php b/plugin/think-plugs-wechat/src/service/PaymentService.php index c464e9d4e..89d14d573 100644 --- a/plugin/think-plugs-wechat/src/service/PaymentService.php +++ b/plugin/think-plugs-wechat/src/service/PaymentService.php @@ -148,8 +148,11 @@ class PaymentService public static function notify(?array $data = null): Response { try { + p(Library::$sapp->request->post(), false, 'wechat_pay_notify'); $notify = static::withPayment()->notify(Library::$sapp->request->post()); $result = empty($notify['result']) ? [] : json_decode($notify['result'], true); + p($result, false, 'wechat_pay_notify'); + p('------------------', false, 'wechat_pay_notify'); if (empty($result) || !is_array($result)) return response('error', 500); //订单支付通知处理 if ($data['scen'] === 'order' && isset($result['trade_state']) && $result['trade_state'] == 'SUCCESS') {