From b18c1a381e8a19d12b036764abbd6ec19ecda842 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Wed, 6 Dec 2023 15:55:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/LandController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();