select(['id', 'status'])->where('status', 0)->orderByDesc('cleaning_priority')->get()->toarray(); foreach ($company_list as $company) { $message_data = ['company_id' => $company['id'], 'start_time' => $start_time, 'end_time' => $end_time]; //执行低价挂网商品数据清洗任务 ProductSurveillanceJobs::dispatch($message_data); } Log::info('商品数据-监控采集清洗情况通知执行完成!' . now()); return Command::SUCCESS; } catch (\Exception $e) { Log::error('商品数据-监控采集清洗情况通知任务执行失败: ' . $e->getMessage()); return Command::FAILURE; } } }