|
@@ -127,7 +127,6 @@ class StoreOrderRepository extends BaseRepository
|
|
|
if (in_array($type, ['weixin', 'alipay'], true) && $isApp) {
|
|
if (in_array($type, ['weixin', 'alipay'], true) && $isApp) {
|
|
|
$type .= 'App';
|
|
$type .= 'App';
|
|
|
}
|
|
}
|
|
|
- @file_put_contents('quanju.txt',"-456\r\n",8);
|
|
|
|
|
// 在支付前触发一个事件,允许其他功能模块对支付行为进行干预或附加操作
|
|
// 在支付前触发一个事件,允许其他功能模块对支付行为进行干预或附加操作
|
|
|
event('order.pay.before', compact('groupOrder', 'type', 'isApp'));
|
|
event('order.pay.before', compact('groupOrder', 'type', 'isApp'));
|
|
|
|
|
|
|
@@ -137,7 +136,6 @@ class StoreOrderRepository extends BaseRepository
|
|
|
} else {
|
|
} else {
|
|
|
$service = new PayService($type, $groupOrder->getPayParams($type === 'alipay' ? $return_url : '', $authCode));
|
|
$service = new PayService($type, $groupOrder->getPayParams($type === 'alipay' ? $return_url : '', $authCode));
|
|
|
}
|
|
}
|
|
|
- @file_put_contents('quanju.txt',"-789\r\n",8);
|
|
|
|
|
// 生成支付配置
|
|
// 生成支付配置
|
|
|
$config = $service->pay($user);
|
|
$config = $service->pay($user);
|
|
|
if ($authCode) {
|
|
if ($authCode) {
|
|
@@ -152,7 +150,6 @@ class StoreOrderRepository extends BaseRepository
|
|
|
$redis->lPush('bar_code_pay', json_encode($setData));
|
|
$redis->lPush('bar_code_pay', json_encode($setData));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- @file_put_contents('quanju.txt',"-159\r\n",8);
|
|
|
|
|
// 返回支付配置和订单ID,支付配置中包含支付方式的状态信息
|
|
// 返回支付配置和订单ID,支付配置中包含支付方式的状态信息
|
|
|
return app('json')->status($type, $config + ['order_id' => $groupOrder['group_order_id'], 'pay_price' => $groupOrder['pay_price']]);
|
|
return app('json')->status($type, $config + ['order_id' => $groupOrder['group_order_id'], 'pay_price' => $groupOrder['pay_price']]);
|
|
|
}
|
|
}
|