From acebcf56de92a2393cfaeddfa09045959ae57a42 Mon Sep 17 00:00:00 2001 From: Jing Li Date: Thu, 10 Aug 2023 15:18:38 +0800 Subject: [PATCH] =?UTF-8?q?linos=E8=99=AB=E6=83=85=E5=90=8C=E6=AD=A5,?= =?UTF-8?q?=E6=AF=8F=E5=B0=8F=E6=97=B6=E6=89=A7=E8=A1=8C=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/LinkosFarmSyncCommand.php | 2 -- app/Console/Kernel.php | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Console/Commands/LinkosFarmSyncCommand.php b/app/Console/Commands/LinkosFarmSyncCommand.php index a8a6709..8dd1647 100644 --- a/app/Console/Commands/LinkosFarmSyncCommand.php +++ b/app/Console/Commands/LinkosFarmSyncCommand.php @@ -6,9 +6,7 @@ use App\Iot\Linkos\FarmClient; use App\Models\Device; use App\Models\FarmWormPhoto; use App\Models\FarmWormReport; -use Carbon\Carbon; use Illuminate\Console\Command; -use Illuminate\Database\Eloquent\Collection; use Throwable; class LinkosFarmSyncCommand extends Command diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 55247d9..6f1b442 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -17,6 +17,7 @@ class Kernel extends ConsoleKernel { // $schedule->command('inspire')->hourly(); $schedule->command('mqtt:penwu-plan')->everyMinute();//每分钟执行 + $schedule->command('linkos-farm:sync')->hourly(); } /**