Compare commits
No commits in common. "22706b80fdb0d313ae15e94d6be6ef981a50451f" and "628b5ee2e4dd33e98c58b644110af413ec1b82a1" have entirely different histories.
22706b80fd
...
628b5ee2e4
|
@ -51,6 +51,12 @@
|
||||||
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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue