animeService = $animeService; } /** * Execute the console command. * * @return int */ public function handle() { dLog('command')->info('====================开始检查产品图片生成任务状态===================='); $time_start = microtime(true); $stats = $this->animeService->checkProductPicTasks(); $time_end = microtime(true); $this->info('检查完成: ' . json_encode($stats, JSON_UNESCAPED_UNICODE)); dLog('command')->info('产品图片生成任务检查完成', [ 'stats' => $stats, 'cost_time' => round($time_end - $time_start, 2) ]); dLog('command')->info('====================结束检查产品图片生成任务状态===================='); return 0; } }