|
|
@ -226,15 +226,15 @@ class PaymentService extends AbstractService
|
|
|
|
|
|
|
|
|
|
|
|
$platformAccount = User::getPlatformAccount($params['isAccountPay']);
|
|
|
|
$platformAccount = User::getPlatformAccount($params['isAccountPay']);
|
|
|
|
$feeRate = 0.007;
|
|
|
|
$feeRate = 0.007;
|
|
|
|
if ($params['isAccountPay']) {
|
|
|
|
// if ($params['isAccountPay']) {
|
|
|
|
$feeRate = 0.00256;
|
|
|
|
// $feeRate = 0.00256;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
$fee = $platformAccount ? floor($order->amount * $feeRate) : 0;
|
|
|
|
$fee = $platformAccount ? floor($order->amount * $feeRate) : 0;
|
|
|
|
if ($fee <= 0) {
|
|
|
|
if ($fee <= 0) {
|
|
|
|
$fee = 1;
|
|
|
|
$fee = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($params['isAccountPay']) {
|
|
|
|
if ($params['isAccountPay']) {
|
|
|
|
$fee += 200;
|
|
|
|
$fee == 200;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$orderSplitInfos = [];
|
|
|
|
$orderSplitInfos = [];
|
|
|
|
$splitUserIds = array_column($params['splitInfoList'], 'splitUserId');
|
|
|
|
$splitUserIds = array_column($params['splitInfoList'], 'splitUserId');
|
|
|
|