品牌名

This commit is contained in:
2025-05-23 08:52:37 +08:00
parent 6acef72d22
commit 6597ea3a43
2 changed files with 15 additions and 14 deletions
@@ -44,12 +44,12 @@ class VehicleNewController extends BaseController
$result = [
'id' => $item['id'],
'vin' => $item['vin'],
'brand' => $item['brand'],
'price' => $item['price'],
'cover' => $item['cover'],
'energy' => $item['energy'],
'type' => $item['type'],
'model' => $item['model'],
'brand' => is_array($item['brand']) ? $item['brand']['translation']['brand_id'] : $item['brand'],
'energy' => is_array($item['energy']) ? $item['energy']['translation']['energy_id'] : $item['energy'],
'type' => isset($item['types']) ? $item['types']['translation']['type_id'] : $item['type'],
'model' => isset($item['models']) ? $item['models']['translation']['model_id'] : $item['model'],
'video' => $item['video'],
'name' => isset($item['translation']) ? $item['translation']['name'] : '',
'condition_desc' => isset($item['translation']) ? $item['translation']['condition_desc'] : '',