diff --git a/app/common/service/pay/WeChatPayMerchantService.php b/app/common/service/pay/WeChatPayMerchantService.php index 579e9e2..5b62670 100644 --- a/app/common/service/pay/WeChatPayMerchantService.php +++ b/app/common/service/pay/WeChatPayMerchantService.php @@ -280,7 +280,7 @@ class WeChatPayMerchantService extends BasePayService if($message['refund_status'] === 'SUCCESS') { $refundOrder = RefundOrder::where(['out_trade_no', $message['out_trade_no'], 'refund_sn'=>$message['out_refund_no']])->find(); // 防止重复操作 - if ($refundOrder['refund_status'] == 1 && !empty($order['refund_id'])) { + if ($refundOrder['refund_status'] == 1 && !empty($refundOrder['refund_id'])) { return true; } $refundOrder->refund_status = 1;