From 030e1b3faa125ed2eb42047ebc8c2c1d715e616d Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Tue, 30 Jan 2024 16:14:55 +0800 Subject: [PATCH] update --- app/adminapi/logic/animal_info/AnimalInfoLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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