diff --git a/app/adminapi/logic/animal_info/AnimalInfoLogic.php b/app/adminapi/logic/animal_info/AnimalInfoLogic.php index e2334db..d10b9c1 100644 --- a/app/adminapi/logic/animal_info/AnimalInfoLogic.php +++ b/app/adminapi/logic/animal_info/AnimalInfoLogic.php @@ -129,6 +129,6 @@ class AnimalInfoLogic extends BaseLogic */ public static function detail($params): array { - return AnimalInfo::findOrEmpty($params['id'])->toArray(); + return AnimalInfo::with(['fenceHouseAttr'])->findOrEmpty($params['id'])->toArray(); } } \ No newline at end of file