|
|
@@ -67,7 +67,7 @@ class MixedPayService extends BasePayService
|
|
|
if ($user->isEmpty()) {
|
|
|
throw new \Exception('用户不存在');
|
|
|
}
|
|
|
-
|
|
|
+ outFileLog($user,'prepay','$user');
|
|
|
$userBalance = $user['user_money']; // 用户余额
|
|
|
$orderAmount = $order['order_amount']; // 订单金额
|
|
|
|
|
|
@@ -101,12 +101,12 @@ class MixedPayService extends BasePayService
|
|
|
'混合支付-余额部分'
|
|
|
);
|
|
|
}
|
|
|
-
|
|
|
+ outFileLog(2,'prepay','2');
|
|
|
// 创建微信支付订单(金额为剩余需要支付的金额)
|
|
|
$wechatOrder = $order;
|
|
|
$wechatOrder['order_amount'] = $wechatAmount;
|
|
|
$wechatOrder['balance_amount'] = $balanceAmount; // 记录已使用的余额金额
|
|
|
-
|
|
|
+ outFileLog($wechatOrder,'prepay','$wechatOrder');
|
|
|
$result = $this->wechatPayService->pay($from, $wechatOrder);
|
|
|
if ($result === false) {
|
|
|
throw new \Exception('微信支付创建失败');
|