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 ];