linos虫情同步,每小时执行一次
parent
8fbb3d22d8
commit
acebcf56de
|
|
@ -6,9 +6,7 @@ use App\Iot\Linkos\FarmClient;
|
||||||
use App\Models\Device;
|
use App\Models\Device;
|
||||||
use App\Models\FarmWormPhoto;
|
use App\Models\FarmWormPhoto;
|
||||||
use App\Models\FarmWormReport;
|
use App\Models\FarmWormReport;
|
||||||
use Carbon\Carbon;
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Database\Eloquent\Collection;
|
|
||||||
use Throwable;
|
use Throwable;
|
||||||
|
|
||||||
class LinkosFarmSyncCommand extends Command
|
class LinkosFarmSyncCommand extends Command
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ class Kernel extends ConsoleKernel
|
||||||
{
|
{
|
||||||
// $schedule->command('inspire')->hourly();
|
// $schedule->command('inspire')->hourly();
|
||||||
$schedule->command('mqtt:penwu-plan')->everyMinute();//每分钟执行
|
$schedule->command('mqtt:penwu-plan')->everyMinute();//每分钟执行
|
||||||
|
$schedule->command('linkos-farm:sync')->hourly();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue