fixed
This commit is contained in:
parent
2083bf58ef
commit
2474758907
|
@ -155,9 +155,9 @@ class IndexController extends BaseApiController
|
||||||
if($plantInfo->isEmpty()){
|
if($plantInfo->isEmpty()){
|
||||||
return $this->fail('种植信息错误');
|
return $this->fail('种植信息错误');
|
||||||
}
|
}
|
||||||
if($plantInfo['status'] != 2){
|
// if($plantInfo['status'] != 2){
|
||||||
return $this->fail('种植信息状态错误');
|
// return $this->fail('种植信息状态错误');
|
||||||
}
|
// }
|
||||||
$landInfo = Land::where('id',$plantInfo['land_id'])->findOrEmpty();
|
$landInfo = Land::where('id',$plantInfo['land_id'])->findOrEmpty();
|
||||||
if($landInfo->isEmpty()){
|
if($landInfo->isEmpty()){
|
||||||
return $this->fail('土地信息错误');
|
return $this->fail('土地信息错误');
|
||||||
|
|
Loading…
Reference in New Issue