修改标记土地全部成熟接口

This commit is contained in:
weiz 2023-10-31 16:32:17 +08:00
parent 1641048106
commit dd9cad450d
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}