|
|
|
@ -86,7 +86,7 @@ class PaymentService extends AbstractService
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function createOrder(App $app, array $params, User $user) {
|
|
|
|
|
$expiresIn = $params['expiresIn'] ?: 15 * 60;
|
|
|
|
|
$expiresIn = $params['expiresIn'] ?? 10 * 60;
|
|
|
|
|
$order = new Order();
|
|
|
|
|
$order->app_id = $app->app_id;
|
|
|
|
|
$order->user_id = $user->user_id;
|
|
|
|
@ -101,7 +101,7 @@ class PaymentService extends AbstractService
|
|
|
|
|
$order->pay_channel = 'BAOFU';
|
|
|
|
|
$order->pay_method = 'paymentSplit';
|
|
|
|
|
$order->pay_type = 'CARD';
|
|
|
|
|
$order->expired_at = date('Y-m-d H:i:s', $expiresIn);
|
|
|
|
|
$order->expired_at = date('Y-m-d H:i:s', time() + $expiresIn);
|
|
|
|
|
$order->org_split_info_list = $params['splitInfoList'];
|
|
|
|
|
$order->save();
|
|
|
|
|
|
|
|
|
|