moonsflyer 5 ماه پیش
والد
کامیت
a957c81419
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      app/common/service/pay/MixedPayService.php

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

@@ -152,7 +152,11 @@ class MixedPayService extends BasePayService
                 "[" . date('Y-m-d H:i:s') . "] 开始创建微信支付订单,金额: {$wechatAmount}" . PHP_EOL,
                 FILE_APPEND | LOCK_EX
             );
-
+            file_put_contents(
+                runtime_path() . 'log' . DIRECTORY_SEPARATOR . 'mixed_pay_debug_' . date('Y-m-d') . '.log',
+                "[" . date('Y-m-d H:i:s') . "] 开始创建微信支付订单参数: " .json_encode($wechatOrder). PHP_EOL,
+                FILE_APPEND | LOCK_EX
+            );
             $result = $this->wechatPayService->pay($from, $wechatOrder);
             if ($result === false) {
                 throw new \Exception('微信支付创建失败:' . $this->wechatPayService->getError());