From ae7cde35c090851393c1fb55db75bba2a26142b1 Mon Sep 17 00:00:00 2001 From: Jing Li Date: Tue, 2 Jan 2024 15:28:45 +0800 Subject: [PATCH] Update --- app/Console/Commands/MonitorDeviceHealthCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/MonitorDeviceHealthCommand.php b/app/Console/Commands/MonitorDeviceHealthCommand.php index 84bc791..a5b261b 100644 --- a/app/Console/Commands/MonitorDeviceHealthCommand.php +++ b/app/Console/Commands/MonitorDeviceHealthCommand.php @@ -64,7 +64,7 @@ class MonitorDeviceHealthCommand extends Command ); foreach ($result['data'] as $item) { - Device::where('sn', $item['deviceId']) + Device::where('sn', str_replace('xxxxS_', '', $item['deviceId'])) ->where('supplier_key', 'device-supplier-yidong') ->where('type', DeviceType::Monitor) ->whereIn('status', [DeviceStatus::Online, DeviceStatus::Offline])