moonsflyer 4 miesięcy temu
rodzic
commit
34c95d6ec8
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      app/common/service/pay/MixedPayService.php

+ 5 - 0
app/common/service/pay/MixedPayService.php

@@ -274,6 +274,11 @@ class MixedPayService extends BasePayService
                     "[" . date('Y-m-d H:i:s') . "] 混合支付退款开始 - 订单号: {$order['sn']}, 微信退款金额: {$refundWechatAmount}" . PHP_EOL,
                     FILE_APPEND | LOCK_EX
                 );
+                file_put_contents(
+                    runtime_path() . 'log' . DIRECTORY_SEPARATOR . 'mixed_refund_debug_' . date('Y-m-d') . '.log',
+                    "[" . date('Y-m-d H:i:s') . "] 混合支付退款开始 - 订单号: {$order['sn']}, 微信支付金额: {$wechatAmount}" . PHP_EOL,
+                    FILE_APPEND | LOCK_EX
+                );
                 $pay = new WeChatPayService($order['order_terminal']);
                 $result = $pay->refund([
                     'transaction_id'    => $order['transaction_id'],