1
0
Fork 0
develop
vine_liutk 2023-07-17 12:07:08 +08:00
parent 101bb2c632
commit eab2a29438
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ class MqttPenwuPlan extends Command
//获取所有喷雾监控点,对应的自动喷雾配置 //获取所有喷雾监控点,对应的自动喷雾配置
$deviceList = Device::where('type', Device::TYPE_ATOMIZING)->get(); $deviceList = Device::where('type', Device::TYPE_ATOMIZING)->get();
$time = now()->format('H:i');//获取当前时间(时,分) $time = now()->format('H:i');//获取当前时间(时,分)
// $time = '01:00';
foreach($deviceList as $device){ foreach($deviceList as $device){
$_config = $device->extends ?? []; $_config = $device->extends ?? [];
if($_config && $_config['is_enable']){//判断该配置是否开启 if($_config && $_config['is_enable']){//判断该配置是否开启