退款回调

This commit is contained in:
chenbo 2023-11-21 17:31:25 +08:00
parent da9c44b809
commit 8a13c51491
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ class WeChatPayMerchantService extends BasePayService
$server->handleRefunded(function (Message $message) {
\think\facade\Log::info(['退款回调信息', $message]);
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(['out_trade_no'=>$message['out_trade_no'], 'refund_sn'=>$message['out_refund_no']])->find();
// 防止重复操作
if ($refundOrder['refund_status'] == 1 && !empty($refundOrder['refund_id'])) {
return true;