品牌名
This commit is contained in:
@@ -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'] : '',
|
||||
|
||||
Reference in New Issue
Block a user