Selaa lähdekoodia

[智价云] 日志日期信息记录

tangyuanwang 22 tuntia sitten
vanhempi
sitoutus
b5b9c19009
1 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. 2 3
      app/Console/Commands/DailyTask.php

+ 2 - 3
app/Console/Commands/DailyTask.php

@@ -37,8 +37,7 @@ class DailyTask extends Command
      */
     public function handle()
     {
-        $this->info('开始执行每日任务...');
-
+        $this->info('开始执行每日任务...' . now());
         try {
             Log::info('每日数据清洗任务执行中 - ' . now());
             $start_time =  time() - 60 * 5; // 5分钟前开始时间
@@ -50,7 +49,7 @@ class DailyTask extends Command
                 //执行低价挂网商品数据清洗任务
                 ScrapeDataProductJobs::dispatch($message_data);
             }
-            $this->info('每日任务执行完成!');
+            $this->info('每日任务执行完成!' . now());
             return Command::SUCCESS;
         } catch (\Exception $e) {
             Log::error('每日定时任务执行失败: ' . $e->getMessage());