退款回调
This commit is contained in:
parent
da9c44b809
commit
8a13c51491
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue