From 2ce9f548420a9d8cbbdfde57268f6879feeb0f61 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Thu, 4 Jun 2026 14:49:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=8A=B6=E6=80=81child=20chi?= =?UTF-8?q?ldren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/ParkingSpaceService.php | 2 +- app/common.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Services/ParkingSpaceService.php b/app/Services/ParkingSpaceService.php index 36a9c94..793497e 100644 --- a/app/Services/ParkingSpaceService.php +++ b/app/Services/ParkingSpaceService.php @@ -73,7 +73,7 @@ class ParkingSpaceService extends BaseService foreach ($this->statusArr as $key => $value) { $arr[$key] = __('service.parking_space.' . $value); if ($value == 'occupy' && $is_child) { - $arr['child'] = [ + $arr['children'] = [ $key => [ 3 => __('service.parking_space.yes_license'), 4 => __('service.parking_space.no_license') diff --git a/app/common.php b/app/common.php index 5230cb9..9b84cc0 100644 --- a/app/common.php +++ b/app/common.php @@ -73,9 +73,9 @@ if (!function_exists('get_select_child_data')) { if ($is_all) { $newData[] = [$str1 => __('admin.all'), $str2 => '']; } - $child = $data['child'] ?? []; + $child = $data['children'] ?? []; foreach ($data as $key => $value) { - if ($key == 'child') { + if ($key == 'children') { continue; } $arr = [ @@ -84,7 +84,7 @@ if (!function_exists('get_select_child_data')) { ]; if (isset($child[$key])) { foreach ($child[$key] as $childKey => $childValue) { - $arr['child'][] = [ + $arr['children'][] = [ $str1 => $childValue, $str2 => $childKey ];