diff --git a/app/api/controller/dataview/LandController.php b/app/api/controller/dataview/LandController.php index a211a94e..454c2071 100644 --- a/app/api/controller/dataview/LandController.php +++ b/app/api/controller/dataview/LandController.php @@ -244,7 +244,7 @@ class LandController extends BaseApiController ->join('product_device pd', 'lp.product_id=pd.product_id') ->join('device d', 'pd.device_id=d.id') ->where('l.id', $landId) - >where('d.is_online', 2)->count(); + ->where('d.is_online', 2)->count(); return $this->success('成功', compact('total', 'online', 'offline'));