info('开始执行每日任务...'); try { Log::info('每日数据清洗任务执行中 - ' . now()); $message_data = ['page' => '1', 'limit' => '50']; //执行低价挂网商品数据清洗任务 LowPriceGoodsJobs::dispatch($message_data); //执行违规商品数据清洗任务 ViolationProductJobs::dispatch($message_data); //执行违规门店数据清洗任务 ViolationStoreJobs::dispatch($message_data); // 示例:记录日志 $this->info('每日任务执行完成!'); return Command::SUCCESS; } catch (\Exception $e) { Log::error('每日定时任务执行失败: ' . $e->getMessage()); $this->error('任务执行失败: ' . $e->getMessage()); return Command::FAILURE; } } }