dev
Jing Li 2024-01-02 15:28:45 +08:00
parent 153eded62a
commit ae7cde35c0
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class MonitorDeviceHealthCommand extends Command
); );
foreach ($result['data'] as $item) { 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('supplier_key', 'device-supplier-yidong')
->where('type', DeviceType::Monitor) ->where('type', DeviceType::Monitor)
->whereIn('status', [DeviceStatus::Online, DeviceStatus::Offline]) ->whereIn('status', [DeviceStatus::Online, DeviceStatus::Offline])