From 436ebb9a31005febfd6b3e52faac07aaeccc6381 Mon Sep 17 00:00:00 2001 From: weiz Date: Wed, 29 Nov 2023 17:23:57 +0800 Subject: [PATCH] update --- app/api/controller/LandController.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/api/controller/LandController.php b/app/api/controller/LandController.php index 4ea59ae8..05582eea 100644 --- a/app/api/controller/LandController.php +++ b/app/api/controller/LandController.php @@ -51,12 +51,6 @@ if($data['user_id'] != $this->userId){ return $this->fail('土地信息与用户信息不匹配'); } - $landProduct = LandProduct::where('land_id',$params['land_id'])->findOrEmpty(); - if($landProduct->isEmpty()){ - $data['is_bind_product'] = 0; - }else{ - $data['is_bind_product'] = 1; - } $data['pic'] = json_decode($data['pic'],true); return $this->success('请求成功',$data->toArray()); }