From 276c431bbada22047ef90ab5957ad3791c9b0164 Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Thu, 2 Jun 2022 16:36:23 +0800 Subject: [PATCH] w --- app/Services/DistributeService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ]);