From 980e2fc580010aa471aa751d4627a2ff6b4a46c4 Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Mon, 20 May 2024 17:03:17 +0800 Subject: [PATCH] YS --- application/models/Squirrel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;