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