diff --git a/process/Task3.php b/process/Task3.php index cc6a455..7465c69 100644 --- a/process/Task3.php +++ b/process/Task3.php @@ -68,8 +68,7 @@ class Task3 $parent->vip_id += 1; //今天邀请人数加1 $parent->today_num += 1; - $existingPhone = ActiveUsers::where('user_id', $parent->id) - ->where('phone', $value->phone) + $existingPhone = ActiveUsers::where('phone', $value->phone) ->first(); //不存在,代表首次邀请 if (!$existingPhone) {