关闭温度湿度字段变化
parent
13ea07ab46
commit
de504d7e1f
|
|
@ -313,7 +313,7 @@ class DeviceService extends BaseService
|
|||
public function meteorologicalControAir(Device $device, MeteorologicalReport $log, Carbon $reportedAt)
|
||||
{
|
||||
//如果温度或者湿度发生变化;
|
||||
if($log->wasChanged('box_temperature') || $log->wasChanged('box_humidity')){
|
||||
// if($log->wasChanged('box_temperature') || $log->wasChanged('box_humidity')){
|
||||
//获取当前设备关联监测点IDs;
|
||||
$monitorIds = MonitorDevice::where('device_id', $device->id)->pluck('monitor_id')->toArray();
|
||||
$regionIds = RegionMonitor::where('monitor_id', $monitorIds)->pluck('region_id')->toArray();
|
||||
|
|
@ -379,7 +379,7 @@ class DeviceService extends BaseService
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
public function verifyRule($rule, $log)
|
||||
|
|
|
|||
Loading…
Reference in New Issue