From fe80d5e89bf79e568304c3535e798e717bb56581 Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Wed, 9 Mar 2022 17:14:36 +0800 Subject: [PATCH] update: commission log --- app/Console/Commands/CheckCommission.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Console/Commands/CheckCommission.php b/app/Console/Commands/CheckCommission.php index 275c80c3..db7ec1b4 100644 --- a/app/Console/Commands/CheckCommission.php +++ b/app/Console/Commands/CheckCommission.php @@ -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 {