From dd9cad450dee53a135edf57482a2b17bf548ad52 Mon Sep 17 00:00:00 2001 From: weiz Date: Tue, 31 Oct 2023 16:32:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=87=E8=AE=B0=E5=9C=9F?= =?UTF-8?q?=E5=9C=B0=E5=85=A8=E9=83=A8=E6=88=90=E7=86=9F=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/LandPlantController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/LandPlantController.php b/app/api/controller/LandPlantController.php index e500df5b..7c7ea331 100644 --- a/app/api/controller/LandPlantController.php +++ b/app/api/controller/LandPlantController.php @@ -106,7 +106,7 @@ if(empty($params['crop_id'])){ return $this->fail('参数错误'); } - $result = Db::name('farmer_land_crop')->where('crop_id',$params['crop_id'])->update(['flag'=>2]); + $result = Db::name('farmer_land_crop')->where('id',$params['crop_id'])->update(['flag'=>2]); return $result ? $this->success('请求成功',[],1,1) : $this->fail('请求失败',[],1,1); }