From bc31d0dcbe8b559ba097d54cd0beee73e457f923 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Tue, 21 Nov 2023 17:37:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E6=AC=BE=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/WeChatPayMerchantService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/common/service/pay/WeChatPayMerchantService.php b/app/common/service/pay/WeChatPayMerchantService.php index 0713d70..d620501 100644 --- a/app/common/service/pay/WeChatPayMerchantService.php +++ b/app/common/service/pay/WeChatPayMerchantService.php @@ -277,8 +277,9 @@ class WeChatPayMerchantService extends BasePayService // 退款通知 $server->handleRefunded(function (Message $message) { \think\facade\Log::info(['退款回调信息', $message]); + \think\facade\Log::info(['退款回调信息', $message['refund_status']]); if($message['refund_status'] === 'SUCCESS') { - $refundOrder = RefundOrder::where(['out_trade_no'=>$message['out_trade_no'], 'refund_sn'=>$message['out_refund_no']])->find(); + $refundOrder = RefundOrder::where(['order_sn'=>$message['out_trade_no'], 'refund_sn'=>$message['out_refund_no']])->find(); // 防止重复操作 if ($refundOrder['refund_status'] == 1 && !empty($refundOrder['refund_id'])) { return true;