diff --git a/app/Services/DistributeService.php b/app/Services/DistributeService.php index 836a2a23..923c6311 100644 --- a/app/Services/DistributeService.php +++ b/app/Services/DistributeService.php @@ -49,7 +49,7 @@ class DistributeService $level_up = $item; } } - if ($level_up) { + if ($level_up && $level_up->sort < $user_agent->sort) { $user->update([ 'agent_id' => $level_up->id, ]);