mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update: fix commission
This commit is contained in:
parent
43f4ecce93
commit
ba3de90733
@ -96,7 +96,7 @@ class CheckCommission extends Command
|
|||||||
for ($l = 0; $l < $level; $l++) {
|
for ($l = 0; $l < $level; $l++) {
|
||||||
$inviter = User::find($inviteUserId);
|
$inviter = User::find($inviteUserId);
|
||||||
if (!$inviter) continue;
|
if (!$inviter) continue;
|
||||||
if (!$commissionShareLevels[$l]) continue;
|
if (!isset($commissionShareLevels[$l])) continue;
|
||||||
$commissionBalance = $order->commission_balance * ($commissionShareLevels[$l] / 100);
|
$commissionBalance = $order->commission_balance * ($commissionShareLevels[$l] / 100);
|
||||||
if ((int)config('v2board.withdraw_close_enable', 0)) {
|
if ((int)config('v2board.withdraw_close_enable', 0)) {
|
||||||
$inviter->balance = $inviter->balance + $commissionBalance;
|
$inviter->balance = $inviter->balance + $commissionBalance;
|
||||||
|
Loading…
Reference in New Issue
Block a user