From 9df65927f6d8da7a8a8ca101be794a61e071c2d3 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Tue, 16 Jun 2026 17:03:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E4=BD=8D=E5=B1=9E=E6=80=A7=E7=BF=BB?= =?UTF-8?q?=E8=AF=91=E4=BC=98=E5=8C=962?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/ParkingSpaceAttributes.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Models/ParkingSpaceAttributes.php b/app/Models/ParkingSpaceAttributes.php index 9c29430..619cbb1 100644 --- a/app/Models/ParkingSpaceAttributes.php +++ b/app/Models/ParkingSpaceAttributes.php @@ -39,14 +39,13 @@ class ParkingSpaceAttributes extends Model $data = self::query()->where('is_default', 0)->get()->select( ['id', 'attributes'] )->toArray(); - foreach ($data as &$item) { - $item['attributes'] + foreach ($data as $key => $item) { + $data[$key]['attributes'] = AdminTranslationService::getTranslationTypeName( $item['id'], 2, $item['attributes'] ); - return $item; } return $data; }