新车列表
This commit is contained in:
@@ -65,7 +65,7 @@ class BrandBannerModel extends Model
|
||||
*/
|
||||
public function translation()
|
||||
{
|
||||
return $this->hasOne(BrandBannerTranslationModel::class, 'brand_id')->where('locale', locale());
|
||||
return $this->hasOne(BrandBannerTranslationModel::class, 'banner_id')->where('locale', locale());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -73,11 +73,11 @@ class BrandBannerModel extends Model
|
||||
*/
|
||||
public function translations()
|
||||
{
|
||||
return $this->hasMany(VehicleDataTranslationModel::class, 'brand_id');
|
||||
return $this->hasMany(VehicleDataTranslationModel::class, 'banner_id');
|
||||
}
|
||||
|
||||
|
||||
const TRANS_FIELDS = [
|
||||
'name', 'condition_desc'
|
||||
'alt'
|
||||
];
|
||||
}
|
||||
@@ -79,6 +79,6 @@ class BrandTraitModel extends Model
|
||||
|
||||
|
||||
const TRANS_FIELDS = [
|
||||
'name', 'condition_desc'
|
||||
'title', 'content'
|
||||
];
|
||||
}
|
||||
@@ -70,6 +70,9 @@ class VehicleNewAlbumModel extends Model
|
||||
return $this->hasMany(VehicleNewAlbumTranslationModel::class, 'album_id');
|
||||
}
|
||||
|
||||
const VEHICLE_NEW_ALBUM_FIELDS = [
|
||||
'pic',
|
||||
];
|
||||
const TRANS_FIELDS = [
|
||||
'alt',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user