update
This commit is contained in:
parent
21f66551f4
commit
f8bd395277
|
@ -135,7 +135,7 @@ class AnimalInfoLogic extends BaseLogic
|
|||
public static function detail($params): array
|
||||
{
|
||||
if (isset($params['sn'])) {
|
||||
return AnimalInfo::with(['fenceHouseAttr'])->where('sn', $params['sn'])->findOrEmpty($params['id'])->toArray();
|
||||
return AnimalInfo::with(['fenceHouseAttr'])->where('sn', $params['sn'])->findOrEmpty()->toArray();
|
||||
}
|
||||
return AnimalInfo::with(['fenceHouseAttr'])->findOrEmpty($params['id'])->toArray();
|
||||
|
||||
|
|
Loading…
Reference in New Issue