update: commission log

This commit is contained in:
tokumeikoi 2022-03-09 17:14:36 +08:00
parent 9f6683592c
commit fe80d5e89b

View File

@ -98,6 +98,7 @@ class CheckCommission extends Command
if (!$inviter) continue;
if (!isset($commissionShareLevels[$l])) continue;
$commissionBalance = $order->commission_balance * ($commissionShareLevels[$l] / 100);
if (!$commissionBalance) continue;
if ((int)config('v2board.withdraw_close_enable', 0)) {
$inviter->balance = $inviter->balance + $commissionBalance;
} else {