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