Просмотр исходного кода

订单同步执行延时 添加至定时任务【不启动】

ajun 5 лет назад
Родитель
Сommit
578e888b5e
2 измененных файлов с 4 добавлено и 1 удалено
  1. 1 1
      app/Console/Commands/SyncWMSOrderTask.php
  2. 3 0
      app/Console/Kernel.php

+ 1 - 1
app/Console/Commands/SyncWMSOrderTask.php

@@ -14,7 +14,7 @@ class SyncWMSOrderTask extends Command
      *
      * @var string
      */
-    protected $signature = 'SyncWMSOrderTask';
+    protected $signature = 'sync:order';
 
     /**
      * The console command description.

+ 3 - 0
app/Console/Kernel.php

@@ -3,6 +3,7 @@
 namespace App\Console;
 
 use App\Console\Commands\SyncBatchTask;
+use App\Console\Commands\SyncWMSOrderTask;
 use Illuminate\Console\Scheduling\Schedule;
 use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
 
@@ -23,6 +24,7 @@ class Kernel extends ConsoleKernel
         \App\Console\Commands\SyncUserVisitMenuLogsCacheTask::class,
         \App\Console\Commands\TestTemp::class,
         SyncBatchTask::class,
+        SyncWMSOrderTask::class,
     ];
 
     /**
@@ -42,6 +44,7 @@ class Kernel extends ConsoleKernel
         $schedule->command('createOwnerBillReport')->monthlyOn(1);
         $schedule->command('createOwnerAreaReport')->monthlyOn(25);
         $schedule->command('sync:batch')->everyMinute();
+//        $schedule->command('sync:order')->everyMinute();
     }
 
     /**