diff --git a/app/api/controller/dataview/DeviceController.php b/app/api/controller/dataview/DeviceController.php index 6e2d14f8..ea3ecb51 100644 --- a/app/api/controller/dataview/DeviceController.php +++ b/app/api/controller/dataview/DeviceController.php @@ -87,7 +87,7 @@ class DeviceController extends BaseApiController } else { $query->where('l.county_code', $this->areaCode); } - })->where('d.is_online', 0)->count(); + })->where('d.is_online', 2)->count(); return $this->success('成功', compact('total', 'online', 'offline'));