修改标记土地全部成熟接口
This commit is contained in:
parent
1641048106
commit
dd9cad450d
|
@ -106,7 +106,7 @@
|
||||||
if(empty($params['crop_id'])){
|
if(empty($params['crop_id'])){
|
||||||
return $this->fail('参数错误');
|
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);
|
return $result ? $this->success('请求成功',[],1,1) : $this->fail('请求失败',[],1,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue