mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update
This commit is contained in:
parent
47bb393f2b
commit
c9297c4aa8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user