|
|
@@ -133,6 +133,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
}
|
|
|
// 在支付前触发一个事件,允许其他功能模块对支付行为进行干预或附加操作
|
|
|
event('order.pay.before', compact('groupOrder', 'type', 'isApp'));
|
|
|
+ @file_put_contents('quanju4.txt',"-支付能传到这里吗4\r\n",8);
|
|
|
|
|
|
// 根据支付方式和是否使用组合支付,选择不同的支付服务类
|
|
|
if (in_array($type, ['weixin', 'weixinApp', 'routine', 'h5', 'weixinQr'], true) && $combine) {
|
|
|
@@ -155,6 +156,8 @@ class StoreOrderRepository extends BaseRepository
|
|
|
}
|
|
|
}
|
|
|
// 返回支付配置和订单ID,支付配置中包含支付方式的状态信息
|
|
|
+ @file_put_contents('quanju4.txt',"-支付能传到这里吗3\r\n",8);
|
|
|
+
|
|
|
return app('json')->status($type, $config + ['order_id' => $groupOrder['group_order_id'], 'pay_price' => $groupOrder['pay_price']]);
|
|
|
}
|
|
|
|
|
|
@@ -291,6 +294,8 @@ class StoreOrderRepository extends BaseRepository
|
|
|
$storeOrderStatusRepository = app()->make(StoreOrderStatusRepository::class);
|
|
|
$svipDiscount = 0;
|
|
|
$isPoints = false;
|
|
|
+ @file_put_contents('quanju4.txt',"-支付能传到这里吗9\r\n",8);
|
|
|
+
|
|
|
foreach ($groupOrder->orderList as $_k => $order) {
|
|
|
$order->paid = 1;
|
|
|
$order->pay_time = $time;
|
|
|
@@ -388,6 +393,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
}
|
|
|
|
|
|
$_order_rate = 0;
|
|
|
+ @file_put_contents('quanju4.txt',"-支付能传到这里吗8\r\n",8);
|
|
|
|
|
|
if ($order['commission_rate'] > 0) {
|
|
|
$commission_rate = bcdiv((string)$order['commission_rate'], '100', 6);
|
|
|
@@ -413,7 +419,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
];
|
|
|
}
|
|
|
if ($order['extension_two'] > 0) {
|
|
|
- @file_put_contents('quanju.txt', $groupOrder->user->ValidSpread->ValidSpread . "-测试4?\r\n", 8);
|
|
|
+ @file_put_contents('quanju4.txt',"-支付能传到这里吗5\r\n",8);
|
|
|
$finance[] = [
|
|
|
'order_id' => $order->order_id,
|
|
|
'order_sn' => $order->order_sn,
|
|
|
@@ -501,7 +507,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
}
|
|
|
//自动打印订单
|
|
|
$this->autoPrinter($order->order_id, $order->mer_id, 1);
|
|
|
- @file_put_contents('quanju.txt', "-支付完成处理积分\r\n", 8);
|
|
|
+ @file_put_contents('quanju4.txt',"-支付能传到这里吗6\r\n",8);
|
|
|
app()->make(StoreOrderRepository::class)->getOrderAward($order);
|
|
|
app()->make(StoreOrderRepository::class)->spreadOrder($order['uid'], $order['order_id']); //查找上级是否有冻结份额
|
|
|
}
|
|
|
@@ -536,6 +542,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
} catch (Exception $e) {
|
|
|
}
|
|
|
}
|
|
|
+ @file_put_contents('quanju4.txt',"-支付能传到这里吗7\r\n",8);
|
|
|
|
|
|
Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_PAY_SUCCESS', 'id' => $groupOrder->group_order_id]);
|
|
|
Queue::push(SendSmsJob::class, ['tempId' => 'ADMIN_PAY_SUCCESS_CODE', 'id' => $groupOrder->group_order_id]);
|