Compare commits

..

No commits in common. "436ebb9a31005febfd6b3e52faac07aaeccc6381" and "26b4fbebc621da70a83f5ee6f07c8359a69238de" have entirely different histories.

1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@
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());
}