退款回调

This commit is contained in:
chenbo 2023-11-21 17:29:04 +08:00
parent ce9590b4ec
commit da9c44b809
1 changed files with 1 additions and 1 deletions

View File

@ -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;