diff --git a/application/models/Squirrel.php b/application/models/Squirrel.php index 101b982..e8bd540 100644 --- a/application/models/Squirrel.php +++ b/application/models/Squirrel.php @@ -45,7 +45,7 @@ class SquirrelModel extends Orm_Base{ $val['icon'] = $this->getIcon($val['id'])['icon']; } //获取繁殖笼幼崽信息 - $data['youzailishi'] = empty($NewSquirrel->getModelList($params))?$NewSquirrel->getModelList($params):[]; + $data['youzailishi'] = !empty($NewSquirrel->getModelList($params))?$NewSquirrel->getModelList($params):[]; return $data;