Compare commits

..

2 Commits

Author SHA1 Message Date
weiz 22706b80fd Merge pull request 'update' (#29) from zhangwei into dev
Reviewed-on: #29
2023-11-29 17:24:32 +08:00
weiz 436ebb9a31 update 2023-11-29 17:23:57 +08:00
1 changed files with 0 additions and 6 deletions

View File

@ -51,12 +51,6 @@
if($data['user_id'] != $this->userId){ if($data['user_id'] != $this->userId){
return $this->fail('土地信息与用户信息不匹配'); 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); $data['pic'] = json_decode($data['pic'],true);
return $this->success('请求成功',$data->toArray()); return $this->success('请求成功',$data->toArray());
} }