diff --git a/app/api/controller/LandController.php b/app/api/controller/LandController.php index a78dd4a0..c21c46e5 100644 --- a/app/api/controller/LandController.php +++ b/app/api/controller/LandController.php @@ -114,7 +114,7 @@ //产品列表 public function product(): Json { - $data = Product::field('id as product_id,code,name')->where('status',1)->select()->toArray(); + $data = Product::field('id as product_id,code,name')->where('status',1)->where('user_id', $this->userId)->select()->toArray(); $result = []; foreach ($data as $k=>$v) { $productDevice = ProductDevice::where('product_id',$v['product_id'])->select()->toArray();