1
0
Fork 0

关闭温度湿度字段变化

main
vine_liutk 2023-09-07 11:58:44 +08:00
parent 13ea07ab46
commit de504d7e1f
1 changed files with 2 additions and 2 deletions

View File

@ -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)