where('enable', 0)->where('ban_time', 0)->get(); if (!$userList->isEmpty()) { foreach ($userList as $user) { UserLabel::query()->where('user_id', $user->id)->delete(); } } Log::info('定时任务:' . $this->description); } }