getRefreshList($condition)->toArray(); $pid_arr = []; foreach ($list as $key => $val) { $pid_arr[] = $val['pid']; } if (!empty($pid_arr)) { $result = $jobsService->autoRefreshJobs($pid_arr); $ids = implode(',', $pid_arr); if ($result) { $queueAutoRefreshRepository->deleteWhere($condition); } else { Log::error("职位ID:".$ids.',智能刷新失败!'); } } } }