|
|
@ -158,7 +158,7 @@ class PaymentService extends AbstractService
|
|
|
|
$order->save();
|
|
|
|
$order->save();
|
|
|
|
|
|
|
|
|
|
|
|
$platformAccount = User::getPlatformAccount();
|
|
|
|
$platformAccount = User::getPlatformAccount();
|
|
|
|
$fee = $platformAccount ? floor($order->amount * 0.01) : 0;
|
|
|
|
$fee = $platformAccount ? floor($order->amount * 0.007) : 0;
|
|
|
|
$orderSplitInfos = [];
|
|
|
|
$orderSplitInfos = [];
|
|
|
|
$splitUserIds = array_column($params['splitInfoList'], 'splitUserId');
|
|
|
|
$splitUserIds = array_column($params['splitInfoList'], 'splitUserId');
|
|
|
|
$users = User::where('app_id', $app->app_id)->whereIn('user_id', $splitUserIds)->get()->keyBy('user_id');
|
|
|
|
$users = User::where('app_id', $app->app_id)->whereIn('user_id', $splitUserIds)->get()->keyBy('user_id');
|
|
|
|