This commit is contained in:
root 2019-11-28 13:55:45 +08:00
parent 47bb393f2b
commit c9297c4aa8

View File

@ -46,7 +46,7 @@ class CheckCommission extends Command
if ($item->invite_user_id) {
$inviter = User::find($item->invite_user_id);
if (!$inviter) continue;
$inviter->commission_balance = $inviter->commission_balance + $order->commission_balance;
$inviter->commission_balance = $inviter->commission_balance + $item->commission_balance;
if ($inviter->save()) {
$item->commission_status = 1;
$item->save();